mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
Properly initialize AVFrames to default values in the MPEG decoder (fixes
the AVFrame pts when decoding MPEG 1 and 2 video) Originally committed as revision 19136 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9d58d4717a
commit
747069e254
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user