mirror of https://git.ffmpeg.org/ffmpeg.git
now we set codec_tag, still have to figure out how to handle flipping
Originally committed as revision 6892 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
079e61db5d
commit
b1d196db56
|
@ -104,6 +104,7 @@ static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||||
av_set_pts_info(st, 64, 1, mtv->video_fps);
|
av_set_pts_info(st, 64, 1, mtv->video_fps);
|
||||||
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
||||||
st->codec->codec_id = CODEC_ID_RAWVIDEO;
|
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->width = mtv->img_width;
|
||||||
st->codec->height = mtv->img_height;
|
st->codec->height = mtv->img_height;
|
||||||
st->codec->bits_per_sample = mtv->img_bpp;
|
st->codec->bits_per_sample = mtv->img_bpp;
|
||||||
|
|
Loading…
Reference in New Issue