summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorGeorgi Chorbadzhiyski <gf@unixsol.org>2011-09-08 20:38:48 +0300
committerLuca Barbato <lu_zero@gentoo.org>2011-09-11 09:27:13 -0400
commitf1f15c3c1a813c86e669aeb58a07c10d9cc21893 (patch)
tree0a87c52c79bb08cba2ba9f1cbe7680d7ce009b60 /libavformat/mpegts.c
parent162f1fbc147bbff6e23b4df1e587cec5d5111052 (diff)
mpegts: improve error reporting
When reporting continuity error show pid, expected and received cc. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 41a685c2bb..16f69328a0 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1292,7 +1292,9 @@ static int handle_packet(MpegTSContext *ts, const uint8_t *packet)
tss->last_cc = cc;
if (!cc_ok) {
- av_log(ts->stream, AV_LOG_WARNING, "Continuity Check Failed\n");
+ av_log(ts->stream, AV_LOG_WARNING,
+ "Continuity check failed for pid %d expected %d got %d\n",
+ pid, expected_cc, cc);
if(tss->type == MPEGTS_PES) {
PESContext *pc = tss->u.pes_filter.opaque;
pc->flags |= AV_PKT_FLAG_CORRUPT;