This happens if allocating extradata fails and s->remove is unset.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
}
if (extradata_size && has_seq) {
- AVBufferRef *filtered_buf;
+ AVBufferRef *filtered_buf = NULL;
uint8_t *extradata, *filtered_data;
if (s->remove) {
if (extradata_size &&
((ctx->par_in->codec_id == AV_CODEC_ID_HEVC && has_sps && has_vps) ||
(ctx->par_in->codec_id == AV_CODEC_ID_H264 && has_sps))) {
- AVBufferRef *filtered_buf;
+ AVBufferRef *filtered_buf = NULL;
uint8_t *extradata, *filtered_data;
if (s->remove) {