win-dshow: Fix wrong AVCodecContext free call
This commit is contained in:
parent
2e1d9e8e64
commit
847eebc648
@ -112,10 +112,8 @@ void ffmpeg_decode_free(struct ffmpeg_decode *decode)
|
||||
if (decode->hw_frame)
|
||||
av_frame_free(&decode->hw_frame);
|
||||
|
||||
if (decode->decoder) {
|
||||
avcodec_close(decode->decoder);
|
||||
av_free(decode->decoder);
|
||||
}
|
||||
if (decode->decoder)
|
||||
avcodec_free_context(&decode->decoder);
|
||||
|
||||
if (decode->frame)
|
||||
av_frame_free(&decode->frame);
|
||||
|
Loading…
x
Reference in New Issue
Block a user