aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2010-04-21 13:00:48 +0000
committerVitor Sessak <vitor1001@gmail.com>2010-04-21 13:00:48 +0000
commit10fa22ccfb3b60f68bc544ebf8d5fc32e9698f26 (patch)
tree7c814e46479b3c34c64b1cbb469ceac15aefca83
parent7221579b0cf08e263827542c2ac767016c657d55 (diff)
downloadffmpeg-10fa22ccfb3b60f68bc544ebf8d5fc32e9698f26.tar.gz
Fix MTV decoding on big-endian systems
Originally committed as revision 22929 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mtv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mtv.c b/libavformat/mtv.c
index 98c3790d25..4eae1a19e6 100644
--- a/libavformat/mtv.c
+++ b/libavformat/mtv.c
@@ -125,10 +125,9 @@ static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
av_set_pts_info(st, 64, 1, mtv->video_fps);
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = CODEC_ID_RAWVIDEO;
- st->codec->codec_tag = MKTAG('R', 'G', 'B', mtv->img_bpp);
+ st->codec->pix_fmt = PIX_FMT_RGB565;
st->codec->width = mtv->img_width;
st->codec->height = mtv->img_height;
- st->codec->bits_per_coded_sample = mtv->img_bpp;
st->codec->sample_rate = mtv->video_fps;
st->codec->extradata = av_strdup("BottomUp");
st->codec->extradata_size = 9;