mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/vda_h264: fix null pointer dereference
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5449239a03
commit
2856332719
|
@ -274,9 +274,11 @@ int ff_vda_destroy_decoder(struct vda_context *vda_ctx)
|
|||
static int vda_h264_uninit(AVCodecContext *avctx)
|
||||
{
|
||||
VDAContext *vda = avctx->internal->hwaccel_priv_data;
|
||||
if (vda) {
|
||||
av_freep(&vda->bitstream);
|
||||
if (vda->frame)
|
||||
CVPixelBufferRelease(vda->frame);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue