summaryrefslogtreecommitdiff
path: root/src/libmpeg2/decode.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-05-27 23:48:12 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-05-27 23:48:12 +0000
commite0dafdff5dc592fb47151894a6db3ce0ae045e26 (patch)
tree93b4a43ccfde5b0e7b3582ea176ca0b961cdb12f /src/libmpeg2/decode.c
parent62386077f664574c0c2193bf0a9b408c1d55ee1a (diff)
downloadxine-lib-e0dafdff5dc592fb47151894a6db3ce0ae045e26.tar.gz
xine-lib-e0dafdff5dc592fb47151894a6db3ce0ae045e26.tar.bz2
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
Diffstat (limited to 'src/libmpeg2/decode.c')
-rw-r--r--src/libmpeg2/decode.c3
1 files changed, 3 insertions, 0 deletions
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;
+
}
}