segfault fix
Originally committed as revision 2434 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
94fd9201ad
commit
9b4b6e099b
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user