Commit dd6bbcec authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/ffmpeg/video.c, src/input/input_dec.c: a couple of fixes. Thanks fenrir :)
parent b42629db
......@@ -2,7 +2,7 @@
* video.c: video decoder using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.44 2003/11/16 21:07:31 gbazin Exp $
* $Id: video.c,v 1.45 2003/11/16 22:23:47 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
......@@ -355,7 +355,6 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
p_sys->input_pts = p_block->i_pts;
}
#if 0
/* TODO implement it in a better way */
/* A good idea could be to decode all I pictures and see for the other */
if( p_sys->b_hurry_up && p_sys->i_late_frames > 4 )
......@@ -392,7 +391,6 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
p_sys->i_late_frames--;
return VLC_SUCCESS;
}
#endif
if( !p_sys->p_context->width || !p_sys->p_context->height )
{
......
......@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: input_dec.c,v 1.67 2003/11/16 21:07:31 gbazin Exp $
* $Id: input_dec.c,v 1.68 2003/11/16 22:23:47 gbazin Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
......@@ -495,12 +495,13 @@ static int DecoderThread( decoder_t * p_dec )
p_dec->fmt_out.audio.i_rate;
sout_format.i_channels =
p_dec->fmt_out.audio.i_channels;
sout_format.i_block_align =
p_dec->fmt_out.audio.i_blockalign;
sout_format.i_width =
p_dec->fmt_out.video.i_width;
sout_format.i_height =
p_dec->fmt_out.video.i_height;
sout_format.i_block_align = 0;
//sout_format.i_bitrate = p_dec->fmt_out.i_bit_rate;
sout_format.i_bitrate = p_dec->fmt_out.i_bitrate;
sout_format.i_extra_data = p_dec->fmt_out.i_extra;
sout_format.p_extra_data = p_dec->fmt_out.p_extra;
......
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