Possible since 315c956cbd14f021e49dac7fc0b906fad1672aad.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -789,9 +789,6 @@ void ff_mpv_common_end(MpegEncContext *s) · 788 unmodified lines | ||
| 789 | 789 | av_freep(&s->bitstream_buffer); |
| 790 | 790 | s->allocated_bitstream_buffer_size = 0; |
| 791 | 791 | |
| 792 | − if (!s->avctx) | |
| 793 | − return; | |
| 794 | − | |
| 795 | 792 | if (s->picture) { |
| 796 | 793 | for (int i = 0; i < MAX_PICTURE_COUNT; i++) |
| 797 | 794 | ff_mpv_picture_free(&s->picture[i]); |