Browse code

Make the codec tags for the yuvjXXX pixel formats the same as the corresponding ones for the yuvXXX pixel formats.

Originally committed as revision 23073 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini authored on 2010/05/10 08:04:01
Showing 1 changed files
... ...
@@ -36,6 +36,13 @@ const PixelFormatTag ff_raw_pixelFormatTags[] = {
36 36
     { PIX_FMT_YUV411P, MKTAG('Y', '4', '1', 'B') },
37 37
     { PIX_FMT_YUV422P, MKTAG('Y', '4', '2', 'B') },
38 38
     { PIX_FMT_YUV422P, MKTAG('P', '4', '2', '2') },
39
+    /* yuvjXXX formats are deprecated hacks specific to libav*,
40
+       they are identical to yuvXXX  */
41
+    { PIX_FMT_YUVJ420P, MKTAG('I', '4', '2', '0') }, /* Planar formats */
42
+    { PIX_FMT_YUVJ420P, MKTAG('I', 'Y', 'U', 'V') },
43
+    { PIX_FMT_YUVJ420P, MKTAG('Y', 'V', '1', '2') },
44
+    { PIX_FMT_YUVJ422P, MKTAG('Y', '4', '2', 'B') },
45
+    { PIX_FMT_YUVJ422P, MKTAG('P', '4', '2', '2') },
39 46
     { PIX_FMT_GRAY8,   MKTAG('Y', '8', '0', '0') },
40 47
     { PIX_FMT_GRAY8,   MKTAG(' ', ' ', 'Y', '8') },
41 48