From 696dac627057cca2383b9324addcb844339a0ea1 Mon Sep 17 00:00:00 2001 From: Ewald Snel Date: Sat, 8 Mar 2003 07:50:38 +0000 Subject: Fix corruption in paused mode (keep all YV12 data, not just top slice) CVS patchset: 4368 CVS date: 2003/03/08 07:50:38 --- src/libmpeg2/slice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libmpeg2/slice.c b/src/libmpeg2/slice.c index 74de597dc..3246043f8 100644 --- a/src/libmpeg2/slice.c +++ b/src/libmpeg2/slice.c @@ -1447,7 +1447,7 @@ do { \ picture->current_frame->copy (picture->current_frame, \ picture->dest); \ if (picture->picture_coding_type == B_TYPE) \ - break; \ + /*break*/; \ } \ picture->dest[0] += 16 * picture->pitches[0]; \ picture->dest[1] += 8 * picture->pitches[1]; \ @@ -1542,9 +1542,9 @@ static inline int slice_init (picture_t * picture, int code) picture->v_offset = (code - 1) * 16; offset = (code - 1); - if (picture->current_frame->copy && picture->picture_coding_type == B_TYPE) +/* if (picture->current_frame->copy && picture->picture_coding_type == B_TYPE) offset = 0; - else if (picture->picture_structure != FRAME_PICTURE) + else */if (picture->picture_structure != FRAME_PICTURE) offset = 2 * offset; picture->dest[0] = picture->current_frame->base[0] + picture->pitches[0] * offset * 16; -- cgit v1.2.3