From e0dafdff5dc592fb47151894a6db3ce0ae045e26 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sun, 27 May 2001 23:48:12 +0000 Subject: mpg123 decoder plugin, 4/5-channel surround, ac3 pass-through (untested) and minor bugfixes CVS patchset: 86 CVS date: 2001/05/27 23:48:12 --- src/libmpeg2/decode.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libmpeg2') diff --git a/src/libmpeg2/decode.c b/src/libmpeg2/decode.c index 044f235f3..847227ebb 100644 --- a/src/libmpeg2/decode.c +++ b/src/libmpeg2/decode.c @@ -93,6 +93,8 @@ static inline int parse_chunk (mpeg2dec_t * mpeg2dec, int code, picture->current_frame->bFrameBad = mpeg2dec->drop_frame; if (picture->picture_coding_type == B_TYPE) { + if (picture->mpeg1) + picture->current_frame->PTS = 0; mpeg2dec->frames_to_drop = picture->current_frame->draw (picture->current_frame); picture->current_frame->free (picture->current_frame); picture->current_frame = NULL; @@ -223,6 +225,7 @@ static inline int parse_chunk (mpeg2dec_t * mpeg2dec, int code, } picture->current_frame->PTS = mpeg2dec->pts; mpeg2dec->pts = 0; + } } -- cgit v1.2.3