[FFmpeg-cvslog] ffmpeg: reset decoded_frame->pts after rescaling.
Michael Niedermayer
git at videolan.org
Thu Jul 26 18:08:14 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 26 17:51:56 2012 +0200| [b616405c16ea0b69fbd68a315ec240959114d44e] | committer: Michael Niedermayer
ffmpeg: reset decoded_frame->pts after rescaling.
This ensures its not used afterwards.
This commit should not change anything as it should not have been used afterwards.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b616405c16ea0b69fbd68a315ec240959114d44e
---
ffmpeg.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index 736b7e1..84efe0d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2499,6 +2499,8 @@ static int decode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
for (i = 0; i < ist->nb_filters; i++)
av_buffersrc_add_frame(ist->filters[i]->filter, decoded_frame, 0);
+ decoded_frame->pts = AV_NOPTS_VALUE;
+
return ret;
}
More information about the ffmpeg-cvslog
mailing list