On 11/11/14 13:26, Vittorio Giovara wrote: > CC: [email protected] > Bug-Id: CID 739870 > --- > libavcodec/libopusenc.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/libopusenc.c b/libavcodec/libopusenc.c > index ee9655b..8447206 100644 > --- a/libavcodec/libopusenc.c > +++ b/libavcodec/libopusenc.c > @@ -308,7 +308,9 @@ static int libopus_encode(AVCodecContext *avctx, AVPacket > *avpkt, > int ret; > > 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); >
Possibly ok. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
