mirror of https://github.com/mpv-player/mpv
Cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22110 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5f37d3fbc6
commit
d157c5e4d2
|
@ -432,12 +432,12 @@ static void uninit(sh_video_t *sh){
|
|||
}
|
||||
|
||||
if (avctx) {
|
||||
if (avctx && avctx->codec && avcodec_close(avctx) < 0)
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_ERR, MSGTR_CantCloseCodec);
|
||||
if (avctx->codec && avcodec_close(avctx) < 0)
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_ERR, MSGTR_CantCloseCodec);
|
||||
|
||||
av_freep(&avctx->extradata);
|
||||
av_freep(&avctx->palctrl);
|
||||
av_freep(&avctx->slice_offset);
|
||||
av_freep(&avctx->extradata);
|
||||
av_freep(&avctx->palctrl);
|
||||
av_freep(&avctx->slice_offset);
|
||||
}
|
||||
|
||||
av_freep(&avctx);
|
||||
|
|
Loading…
Reference in New Issue