mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 02:42:21 +00:00
avcodec/mpegvideo: Remove always-false check
This basically revertscc0380222a
. At the time of said commit, cleanup on init failure was very buggy. For codecs with the INIT_CLEANUP cap, the close function could be called on error even before the private data has been allocated; and when using frame threading the same could also happen even without said flag. Some mpegvideo decoders were affected by the latter. Yet both of these issues have been fixed long ago, the latter in commite9b6617579
. Therefore the workaround in ff_mpv_common_end() can be removed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
ca96456c0e
commit
7e93fba51f
@ -788,9 +788,6 @@ void ff_mpv_free_context_frame(MpegEncContext *s)
|
||||
/* init common structure for both encoder and decoder */
|
||||
void ff_mpv_common_end(MpegEncContext *s)
|
||||
{
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
ff_mpv_free_context_frame(s);
|
||||
if (s->slice_context_count > 1)
|
||||
s->slice_context_count = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user