mirror of https://git.ffmpeg.org/ffmpeg.git
libvpxenc: clean memory on error
CC: libav-stable@libav.org Bug-Id: CID 733795
This commit is contained in:
parent
a28468d0da
commit
771656bd85
|
@ -470,6 +470,7 @@ static int queue_frames(AVCodecContext *avctx, AVPacket *pkt_out,
|
|||
av_log(avctx, AV_LOG_ERROR,
|
||||
"Data buffer alloc (%zu bytes) failed\n",
|
||||
cx_frame->sz);
|
||||
av_freep(&cx_frame);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
memcpy(cx_frame->buf, pkt->data.frame.buf, pkt->data.frame.sz);
|
||||
|
|
Loading…
Reference in New Issue