History

avcodec/pcm_rechunk_bsf: unref packet before putting a new one in

Fixes: memleak Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_BSF_PCM_RECHUNK_fuzzer-5562089618407424

Michael Niedermayer committed 4 years ago

Commit 1440bf11 parent e2c3aa81 file · +2 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/pcm_rechunk_bsf.c+2−1
@@ -151,7 +151,8 @@ static int rechunk_filter(AVBSFContext *ctx, AVPacket *pkt) · 150 unmodified lines
151151 av_packet_move_ref(pkt, s->in_pkt);
152152 return send_packet(s, nb_samples, pkt);
153153 }
154− }
154+ } else
155+ av_packet_unref(s->in_pkt);
155156
156157 ret = ff_bsf_get_packet_ref(ctx, s->in_pkt);
157158 if (ret == AVERROR_EOF && s->out_pkt->size) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t