summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2004-07-20 21:38:34 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2004-07-20 21:38:34 +0000
commitcbabea3f552c4868e69ad53a0571a8cbefd43541 (patch)
tree197f331cf680befb850eae8615c82ceb0b096f94
parentff21832c6daecf1bfe263177f1e3182731dde2c8 (diff)
downloadxine-lib-cbabea3f552c4868e69ad53a0571a8cbefd43541.tar.gz
xine-lib-cbabea3f552c4868e69ad53a0571a8cbefd43541.tar.bz2
Use lavc version of the mpeg rff flag.
CVS patchset: 6826 CVS date: 2004/07/20 21:38:34
-rw-r--r--src/libffmpeg/video_decoder.c8
1 files changed, 6 insertions, 2 deletions
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 )