summaryrefslogtreecommitdiff
path: root/libavformat/grab.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-02-07 01:48:09 +0000
committerDiego Biurrun <diego@biurrun.de>2007-02-07 01:48:09 +0000
commit71e445fca3ccc1285068386bf9858d180b0fecfc (patch)
tree230f6ba62bf0a9af096cad7c2a7c332b066e2965 /libavformat/grab.c
parent917fa192c72e226ffaddefbe6661ec3c405156cf (diff)
Replace deprecated PIX_FMT names by the newer variants.
Originally committed as revision 7867 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/grab.c')
-rw-r--r--libavformat/grab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/grab.c b/libavformat/grab.c
index 4f37b87fad..4395c18846 100644
--- a/libavformat/grab.c
+++ b/libavformat/grab.c
@@ -124,7 +124,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
if (ap->pix_fmt == PIX_FMT_YUV420P) {
desired_palette = VIDEO_PALETTE_YUV420P;
desired_depth = 12;
- } else if (ap->pix_fmt == PIX_FMT_YUV422) {
+ } else if (ap->pix_fmt == PIX_FMT_YUYV422) {
desired_palette = VIDEO_PALETTE_YUV422;
desired_depth = 16;
} else if (ap->pix_fmt == PIX_FMT_BGR24) {
@@ -260,7 +260,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
break;
case VIDEO_PALETTE_YUV422:
frame_size = width * height * 2;
- st->codec->pix_fmt = PIX_FMT_YUV422;
+ st->codec->pix_fmt = PIX_FMT_YUYV422;
break;
case VIDEO_PALETTE_RGB24:
frame_size = width * height * 3;