Commit 30a998d3 authored by Laurent Aimar's avatar Laurent Aimar

* video.c: with mpeg4 stream, we try to decode a picture only when we have

received an header (vol). (It prevents some segfaults with mpeg4 streaming).
parent 09afca1d
......@@ -2,7 +2,7 @@
* video.c: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.13 2002/12/14 18:57:34 fenrir Exp $
* $Id: video.c,v 1.14 2002/12/18 16:31:25 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
......@@ -514,6 +514,11 @@ void E_( DecodeThread_Video )( vdec_thread_t *p_vdec )
p_vdec->p_context->hurry_up = 0;
}
if( !p_vdec->p_context->width || !p_vdec->p_context->height )
{
p_vdec->p_context->hurry_up = 5;
}
do
{
input_ExtractPES( p_vdec->p_fifo, &p_pes );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment