diff options
-rw-r--r-- | src/libffmpeg/xine_decoder.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index 83286f0ef..36988d383 100644 --- a/src/libffmpeg/xine_decoder.c +++ b/src/libffmpeg/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.98 2003/02/23 22:03:16 guenter Exp $ + * $Id: xine_decoder.c,v 1.99 2003/03/07 01:22:54 miguelfreitas Exp $ * * xine decoder plugin using ffmpeg * @@ -723,7 +723,8 @@ static void ff_reset (video_decoder_t *this_gen) { #endif this->size = 0; - avcodec_flush_buffers(this->context); + if(this->context) + avcodec_flush_buffers(this->context); } static void ff_discontinuity (video_decoder_t *this_gen) { |