History

avcodec/opus: don't materialize buf pointer from null

Fixes: avcodec/opus/dec.c: runtime error: applying non-zero offset 10 to null pointer

Kacper Michajłow committed 1 year ago

Commit 3b6ec5a1 parent 05094c11 file · +3 −0Browse files

Unified · Split

libavcodec/opus/dec.c+3−0
@@ -585,6 +585,9 @@ static int opus_decode_packet(AVCodecContext *avctx, AVFrame *frame, · 584 unmodified lines
585585 s->decoded_samples = ret;
586586 decoded_samples = FFMIN(decoded_samples, ret);
587587
588+ if (!buf)
589+ continue;
590+
588591 buf += s->packet.packet_size;
589592 buf_size -= s->packet.packet_size;
590593 }

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