Commit 3c6e148e authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'b09cf8af'

* commit 'b09cf8af':
  libopusenc: check return value
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 8e6084ee b09cf8af
......@@ -316,7 +316,9 @@ static int libopus_encode(AVCodecContext *avctx, AVPacket *avpkt,
int discard_padding;
if (frame) {
ff_af_queue_add(&opus->afq, frame);
ret = ff_af_queue_add(&opus->afq, frame);
if (ret < 0)
return ret;
if (frame->nb_samples < opus->opts.packet_size) {
audio = opus->samples;
memcpy(audio, frame->data[0], frame->nb_samples * sample_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment