mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-30 20:16:42 +08:00 
			
		
		
		
	avcodec/libvorbisenc: dont add the duration to AV_NOPTS_VALUE
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -349,6 +349,7 @@ static int libvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, | ||||
|             avctx->delay              = duration; | ||||
|             av_assert0(!s->afq.remaining_delay); | ||||
|             s->afq.frames->duration  += duration; | ||||
|             if (s->afq.frames->pts != AV_NOPTS_VALUE) | ||||
|                 s->afq.frames->pts       -= duration; | ||||
|             s->afq.remaining_samples += duration; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Niedermayer
					Michael Niedermayer