From 40ec329706aff0c91cb0b5a8c5588ec4948d09ed Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 30 Jul 2004 19:08:47 +0000 Subject: possibly fix the sync problem recently reported on xine-devel CVS patchset: 6864 CVS date: 2004/07/30 19:08:47 --- src/libffmpeg/video_decoder.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libffmpeg/video_decoder.c') diff --git a/src/libffmpeg/video_decoder.c b/src/libffmpeg/video_decoder.c index 1d74ec998..c1e698380 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.23 2004/07/20 21:38:34 tmattern Exp $ + * $Id: video_decoder.c,v 1.24 2004/07/30 19:08:48 miguelfreitas Exp $ * * xine video decoder plugin using ffmpeg * @@ -855,9 +855,7 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { this->aspect_ratio*10000); } - if (buf->decoder_flags & BUF_FLAG_FRAME_START) - this->pts = buf->pts; - else if (this->is_mpeg12 && buf->pts) + if (buf->pts) this->pts = buf->pts; if ((this->decoder_ok && this->size) || this->is_mpeg12) { -- cgit v1.2.3