]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
now we set codec_tag, still have to figure out how to handle flipping
authorreynaldo <reynaldo@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 3 Nov 2006 20:13:42 +0000 (20:13 +0000)
committerreynaldo <reynaldo@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 3 Nov 2006 20:13:42 +0000 (20:13 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6892 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/mtv.c

index fff72b4739b95207ba7efe50e8fe64073aa1b4b9..7a68ea97f3836e3b892f9ea56ed5f2d6b48990b4 100644 (file)
@@ -104,6 +104,7 @@ static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
     av_set_pts_info(st, 64, 1, mtv->video_fps);
     st->codec->codec_type      = CODEC_TYPE_VIDEO;
     st->codec->codec_id        = CODEC_ID_RAWVIDEO;
+    st->codec->codec_tag       = MKTAG('R', 'G', 'B', mtv->img_bpp);
     st->codec->width           = mtv->img_width;
     st->codec->height          = mtv->img_height;
     st->codec->bits_per_sample = mtv->img_bpp;