You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/libvorbisenc: do not attempt to flush if no data was input
this prevents the creation of a packet even though no single sample has ever been input, which some confusion in the timestamp generation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -295,7 +295,7 @@ static int libvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
|||||||
if ((ret = ff_af_queue_add(&s->afq, frame)) < 0)
|
if ((ret = ff_af_queue_add(&s->afq, frame)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
if (!s->eof)
|
if (!s->eof && s->afq.frame_alloc)
|
||||||
if ((ret = vorbis_analysis_wrote(&s->vd, 0)) < 0) {
|
if ((ret = vorbis_analysis_wrote(&s->vd, 0)) < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "error in vorbis_analysis_wrote()\n");
|
av_log(avctx, AV_LOG_ERROR, "error in vorbis_analysis_wrote()\n");
|
||||||
return vorbis_error_to_averror(ret);
|
return vorbis_error_to_averror(ret);
|
||||||
|
Reference in New Issue
Block a user