You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
jpeglsenc: favor av_freep() for saftey over av_free() when a variable is still accessible afterwards
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -345,8 +345,8 @@ static int encode_picture_ls(AVCodecContext *avctx, AVPacket *pkt,
|
||||
}
|
||||
}
|
||||
|
||||
av_free(zero);
|
||||
av_free(state);
|
||||
av_freep(&zero);
|
||||
av_freep(&state);
|
||||
|
||||
// the specification says that after doing 0xff escaping unused bits in the
|
||||
// last byte must be set to 0, so just append 7 "optional" zero-bits to
|
||||
|
Reference in New Issue
Block a user