[FFmpeg-cvslog] mpegts: improve error reporting

Georgi Chorbadzhiyski git at videolan.org
Mon Sep 12 00:38:56 CEST 2011


ffmpeg | branch: master | Georgi Chorbadzhiyski <gf at unixsol.org> | Thu Sep  8 20:38:48 2011 +0300| [f1f15c3c1a813c86e669aeb58a07c10d9cc21893] | committer: Luca Barbato

mpegts: improve error reporting

When reporting continuity error show pid, expected and received cc.

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f1f15c3c1a813c86e669aeb58a07c10d9cc21893
---

 libavformat/mpegts.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 41a685c..16f6932 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;



More information about the ffmpeg-cvslog mailing list