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

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

Unified · Split

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

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