[FFmpeg-cvslog] avconv: don't warn on multiple frames per packet for codecs that expect it
Anton Khirnov
git at videolan.org
Mon Mar 24 16:51:09 CET 2014
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Mar 17 11:14:14 2014 +0100| [d1780e01b8b7d6977260e7136243bf5fccd878ce] | committer: Anton Khirnov
avconv: don't warn on multiple frames per packet for codecs that expect it
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d1780e01b8b7d6977260e7136243bf5fccd878ce
---
avconv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/avconv.c b/avconv.c
index 68e3329..5d4daba 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1380,7 +1380,8 @@ static int output_packet(InputStream *ist, const AVPacket *pkt)
ist->last_dts = ist->next_dts;
- if (avpkt.size && avpkt.size != pkt->size) {
+ if (avpkt.size && avpkt.size != pkt->size &&
+ !(ist->dec->capabilities & CODEC_CAP_SUBFRAMES)) {
av_log(NULL, ist->showed_multi_packet_warning ? AV_LOG_VERBOSE : AV_LOG_WARNING,
"Multiple frames in a packet from stream %d\n", pkt->stream_index);
ist->showed_multi_packet_warning = 1;
More information about the ffmpeg-cvslog
mailing list