Commit 7bb4d6d6 authored by michael's avatar michael

segfault fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2434 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c71e2f8e
...@@ -585,8 +585,10 @@ void MPV_common_end(MpegEncContext *s) ...@@ -585,8 +585,10 @@ void MPV_common_end(MpegEncContext *s)
av_freep(&s->input_picture); av_freep(&s->input_picture);
av_freep(&s->reordered_input_picture); av_freep(&s->reordered_input_picture);
for(i=0; i<MAX_PICTURE_COUNT; i++){ if(s->picture){
free_picture(s, &s->picture[i]); for(i=0; i<MAX_PICTURE_COUNT; i++){
free_picture(s, &s->picture[i]);
}
} }
av_freep(&s->picture); av_freep(&s->picture);
avcodec_default_free_buffers(s->avctx); avcodec_default_free_buffers(s->avctx);
......
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