changeset 4852:8b92d313409d libavcodec

fix playback of odd_height.mov this isnt the most beautifull solution but at least it works independant of the random height in mov and it doesnt add any secholes
author michael
date Sat, 14 Apr 2007 22:22:34 +0000
parents ba6fd4b884b6
children df386603730b
files mjpeg.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mjpeg.c	Sat Apr 14 22:05:12 2007 +0000
+++ b/mjpeg.c	Sat Apr 14 22:22:34 2007 +0000
@@ -1125,6 +1125,10 @@
     height = get_bits(&s->gb, 16);
     width = get_bits(&s->gb, 16);
 
+    //HACK for odd_height.mov
+    if(s->interlaced && s->width == width && s->height == height + 1)
+        height= s->height;
+
     av_log(s->avctx, AV_LOG_DEBUG, "sof0: picture: %dx%d\n", width, height);
     if(avcodec_check_dimensions(s->avctx, width, height))
         return -1;