From cbabea3f552c4868e69ad53a0571a8cbefd43541 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Tue, 20 Jul 2004 21:38:34 +0000 Subject: Use lavc version of the mpeg rff flag. CVS patchset: 6826 CVS date: 2004/07/20 21:38:34 --- src/libffmpeg/video_decoder.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libffmpeg/video_decoder.c b/src/libffmpeg/video_decoder.c index 934b42556..1d74ec998 100644 --- a/src/libffmpeg/video_decoder.c +++ b/src/libffmpeg/video_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: video_decoder.c,v 1.22 2004/07/18 00:50:02 tmattern Exp $ + * $Id: video_decoder.c,v 1.23 2004/07/20 21:38:34 tmattern Exp $ * * xine video decoder plugin using ffmpeg * @@ -1049,7 +1049,11 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { img->pts = this->pts; this->pts = 0; - img->duration = this->video_step; + + if (!this->av_frame->repeat_pict) + img->duration = this->video_step; + else + img->duration = this->video_step * 3 / 2; this->skipframes = img->draw(img, this->stream); if( this->skipframes < 0 ) -- cgit v1.2.3