From 1fe4e4910b45da16c96c75845f17dc34b1972059 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 4 Feb 2003 09:50:22 +0000 Subject: blind fix: DV jerky playback. thanks Bill Fink for investigating it. CVS patchset: 4102 CVS date: 2003/02/04 09:50:22 --- src/libffmpeg/xine_decoder.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/libffmpeg/xine_decoder.c') diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index 3bf3b29b5..f850dc24a 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.90 2003/02/02 15:42:04 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.91 2003/02/04 09:50:22 miguelfreitas Exp $ * * xine decoder plugin using ffmpeg * @@ -448,9 +448,10 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { while (this->size>0) { /* DV frames can be completely skipped */ - if( codec_type == BUF_VIDEO_DV && this->skipframes ) + if( codec_type == BUF_VIDEO_DV && this->skipframes ) { len = this->size; - else + got_picture = 1; + } else len = avcodec_decode_video (this->context, this->av_frame, &got_picture, &this->buf[offset], this->size); -- cgit v1.2.3