MPEG seek crash (was: [Ffmpeg-devel] Re: Compiling FFmpeg using ISO/C89 compiler)
Reimar Döffinger
Reimar.Doeffinger
Sat Dec 9 12:07:34 CET 2006
Hello,
On Fri, Dec 08, 2006 at 05:28:57PM +0100, Baptiste Coudurier wrote:
> If my chems1.vob is the same one, and anyway it should not crash indeed.
> I confirm that ffplay_g crash with current svn.
>
> Log attached. Hope this helps.
Can you test attached patch? I guess it is a bit hackish, but I'd really
like to know what kind of effect it has *g*
Greetings,
Reimar D?ffinger
-------------- next part --------------
Index: libavcodec/mpegvideo.c
===================================================================
--- libavcodec/mpegvideo.c (revision 7261)
+++ libavcodec/mpegvideo.c (working copy)
@@ -3905,6 +3905,8 @@
return;
}
#endif
+ if (!s->last_picture.data) s->mv_dir &= ~MV_DIR_FORWARD;
+ if (!s->next_picture.data) s->mv_dir &= ~MV_DIR_BACKWARD;
mb_x = s->mb_x;
mb_y = s->mb_y;
More information about the ffmpeg-devel
mailing list