mirror of https://git.videolan.org/git/ffmpeg.git
avcodec/mpegvideo: Remove pointless check
Possible since 315c956cbd
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
6f2f496822
commit
94295bb574
|
@ -789,9 +789,6 @@ void ff_mpv_common_end(MpegEncContext *s)
|
||||||
av_freep(&s->bitstream_buffer);
|
av_freep(&s->bitstream_buffer);
|
||||||
s->allocated_bitstream_buffer_size = 0;
|
s->allocated_bitstream_buffer_size = 0;
|
||||||
|
|
||||||
if (!s->avctx)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (s->picture) {
|
if (s->picture) {
|
||||||
for (int i = 0; i < MAX_PICTURE_COUNT; i++)
|
for (int i = 0; i < MAX_PICTURE_COUNT; i++)
|
||||||
ff_mpv_picture_free(&s->picture[i]);
|
ff_mpv_picture_free(&s->picture[i]);
|
||||||
|
|
Loading…
Reference in New Issue