1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-23 04:24:35 +02:00

avcodec/avdct: use the proper function to free AVCodecContext

Fixes ticket 

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2018-03-26 12:51:25 -03:00
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;
}