Commit 267bbff7 authored by lucabe's avatar lucabe

Properly initialize AVFrames to default values in the MPEG decoder (fixes

the AVFrame pts when decoding MPEG 1 and 2 video)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19136 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bddd8273
......@@ -554,6 +554,9 @@ av_cold int MPV_common_init(MpegEncContext *s)
}
}
CHECKED_ALLOCZ(s->picture, MAX_PICTURE_COUNT * sizeof(Picture))
for(i = 0; i < MAX_PICTURE_COUNT; i++) {
avcodec_get_frame_defaults((AVFrame *)&s->picture[i]);
}
CHECKED_ALLOCZ(s->error_status_table, mb_array_size*sizeof(uint8_t))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment