summaryrefslogtreecommitdiff
path: root/src/libmpeg2/decode.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2002-07-10 14:07:33 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2002-07-10 14:07:33 +0000
commit24c9de726cc5040869cdcd58fdf2e66949a682d3 (patch)
tree90c2cf3fc965d719bbf47b748da4642a3a8de64e /src/libmpeg2/decode.c
parentc636a67577b49a714e4f5919ab1073b79979de37 (diff)
downloadxine-lib-24c9de726cc5040869cdcd58fdf2e66949a682d3.tar.gz
xine-lib-24c9de726cc5040869cdcd58fdf2e66949a682d3.tar.bz2
* handle aspect special buffers and force the aspect to the mode requested
by the input plugin (currently only xine-dvdnav forces aspects) * detect pan&scan material by examining the streams scale prohibitions CVS patchset: 2248 CVS date: 2002/07/10 14:07:33
Diffstat (limited to 'src/libmpeg2/decode.c')
-rw-r--r--src/libmpeg2/decode.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libmpeg2/decode.c b/src/libmpeg2/decode.c
index 7c46f70f3..35b3f15e0 100644
--- a/src/libmpeg2/decode.c
+++ b/src/libmpeg2/decode.c
@@ -288,7 +288,10 @@ static inline int parse_chunk (mpeg2dec_t * mpeg2dec, int code,
if (mpeg2_header_sequence (picture, buffer)) {
fprintf (stderr, "bad sequence header\n");
/* abort(); */
- } else if (mpeg2dec->is_sequence_needed
+ break;
+ }
+ if (mpeg2dec->force_aspect) picture->aspect_ratio_information = mpeg2dec->force_aspect;
+ if (mpeg2dec->is_sequence_needed
|| (picture->frame_width != picture->coded_picture_width)
|| (picture->frame_height != picture->coded_picture_height)) {
xine_frame_change_event_t notify_event;
@@ -632,6 +635,7 @@ void mpeg2_find_sequence_header (mpeg2dec_t * mpeg2dec,
printf ("libmpeg2: bad sequence header\n");
continue;
}
+ if (mpeg2dec->force_aspect) picture->aspect_ratio_information = mpeg2dec->force_aspect;
if (mpeg2dec->is_sequence_needed) {
xine_frame_change_event_t notify_event;