# HG changeset patch # User vitor # Date 1271854848 0 # Node ID e46f8cc350ef820134d3e9ea983c3b497cee9af1 # Parent 028ad8c9a6f677b124bead5ee31bdf732147d968 Fix MTV decoding on big-endian systems diff -r 028ad8c9a6f6 -r e46f8cc350ef mtv.c --- a/mtv.c Wed Apr 21 06:36:09 2010 +0000 +++ b/mtv.c Wed Apr 21 13:00:48 2010 +0000 @@ -125,10 +125,9 @@ 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;