[FFmpeg-cvslog] r22929 - trunk/libavformat/mtv.c

vitor subversion
Wed Apr 21 15:00:48 CEST 2010


Author: vitor
Date: Wed Apr 21 15:00:48 2010
New Revision: 22929

Log:
Fix MTV decoding on big-endian systems

Modified:
   trunk/libavformat/mtv.c

Modified: trunk/libavformat/mtv.c
==============================================================================
--- trunk/libavformat/mtv.c	Wed Apr 21 08:36:09 2010	(r22928)
+++ trunk/libavformat/mtv.c	Wed Apr 21 15:00:48 2010	(r22929)
@@ -125,10 +125,9 @@ static int mtv_read_header(AVFormatConte
     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;



More information about the ffmpeg-cvslog mailing list