You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
libvpxenc: clean memory on error
CC: libav-stable@libav.org Bug-Id: CID 733795
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user