mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
efdbf37255
commit
a594678e3d
285 changed files with 12724 additions and 1671 deletions
|
@ -543,7 +543,7 @@ static int opus_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
|||
ff_bufqueue_add(avctx, &s->bufqueue, av_frame_clone(frame));
|
||||
} else {
|
||||
ff_opus_psy_signal_eof(&s->psyctx);
|
||||
if (!s->afq.remaining_samples || !avctx->frame_number)
|
||||
if (!s->afq.remaining_samples)
|
||||
return 0; /* We've been flushed and there's nothing left to encode */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue