mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-26 08:23:10 +00:00
* avoid usage of next/last buffer after flush
(but there still something wrong when the first frame isn't keyframe) Originally committed as revision 1403 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
628d601b56
commit
87fb268fdc
@ -678,6 +678,7 @@ void avcodec_flush_buffers(AVCodecContext *avctx)
|
|||||||
|| s->picture[i].type == FF_BUFFER_TYPE_USER))
|
|| s->picture[i].type == FF_BUFFER_TYPE_USER))
|
||||||
avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]);
|
avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]);
|
||||||
}
|
}
|
||||||
|
s->last_picture.data[0] = s->next_picture.data[0] = NULL;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
//FIXME
|
//FIXME
|
||||||
|
Loading…
Reference in New Issue
Block a user