Browse Source

mpeg 2 seeking fix

Originally committed as revision 2018 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 22 years ago
parent
commit
05fd1577be
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/mpeg12.c

+ 3
- 0
libavcodec/mpeg12.c View File

@@ -2304,6 +2304,9 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
mpeg_decode_user_data(avctx, mpeg_decode_user_data(avctx,
buf_ptr, input_size); buf_ptr, input_size);
break; break;
case GOP_START_CODE:
s2->first_field=0;
break;
default: default:
if (start_code >= SLICE_MIN_START_CODE && if (start_code >= SLICE_MIN_START_CODE &&
start_code <= SLICE_MAX_START_CODE) { start_code <= SLICE_MAX_START_CODE) {


Loading…
Cancel
Save