aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-18 21:30:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-18 22:45:39 +0200
commitee7f2609a0dcac4008759f20ab9558a68d759821 (patch)
tree29407e9b91de0b8691f5c944fa28430bc0d080f1
parent47f9a5b737c576069c26cc800ba9a2dd96441162 (diff)
downloadffmpeg-ee7f2609a0dcac4008759f20ab9558a68d759821.tar.gz
avformat/mpegts: print packet size warning only if new size differs from old
No case is known to have triggered this, but its more correct to check that the new size differs. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index e1f9865e47..1213ecae46 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1929,7 +1929,7 @@ static void reanalyze(MpegTSContext *ts) {
} else if (ts->size_stat[2] > SIZE_STAT_THRESHOLD) {
newsize = TS_FEC_PACKET_SIZE;
}
- if (newsize) {
+ if (newsize && newsize != ts->raw_packet_size) {
av_log(ts->stream, AV_LOG_WARNING, "changing packet size to %d\n", newsize);
ts->raw_packet_size = newsize;
}