[FFmpeg-devel] [PATCH] mtv mark frames as flipped

Reimar Döffinger Reimar.Doeffinger
Wed Aug 19 11:35:11 CEST 2009


Hello,
currently ffplay plays mtv files upside-down.
This patch fixes it:
Index: libavformat/mtv.c
===================================================================
--- libavformat/mtv.c   (revision 19668)
+++ libavformat/mtv.c   (working copy)
@@ -102,6 +102,8 @@
     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;
 
     // audio - mp3
 



More information about the ffmpeg-devel mailing list