You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/libvpxenc: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -763,8 +763,8 @@ static int vp8_encode(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rawimg_alpha) {
|
if (rawimg_alpha) {
|
||||||
av_free(rawimg_alpha->planes[VPX_PLANE_U]);
|
av_freep(&rawimg_alpha->planes[VPX_PLANE_U]);
|
||||||
av_free(rawimg_alpha->planes[VPX_PLANE_V]);
|
av_freep(&rawimg_alpha->planes[VPX_PLANE_V]);
|
||||||
}
|
}
|
||||||
|
|
||||||
*got_packet = !!coded_size;
|
*got_packet = !!coded_size;
|
||||||
|
Reference in New Issue
Block a user