mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/avdct: use the proper function to free AVCodecContext
Fixes ticket #7074 Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
3eff98c927
commit
3c245707bd
|
@ -123,8 +123,7 @@ int avcodec_dct_init(AVDCT *dsp)
|
|||
}
|
||||
#endif
|
||||
|
||||
avcodec_close(avctx);
|
||||
av_free(avctx);
|
||||
avcodec_free_context(&avctx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue