summaryrefslogtreecommitdiff
path: root/avconv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-03-17 11:14:14 +0100
committerAnton Khirnov <anton@khirnov.net>2014-03-24 06:21:13 +0100
commitd1780e01b8b7d6977260e7136243bf5fccd878ce (patch)
tree9ea30ab2479a475194824384ce2cc74e1bdfba66 /avconv.c
parent4754345027eb85cfa51aeb88beec68d7b036c11e (diff)
avconv: don't warn on multiple frames per packet for codecs that expect it
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avconv.c b/avconv.c
index 68e332997c..5d4daba5cd 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;