Commit f1f15c3c authored by Georgi Chorbadzhiyski's avatar Georgi Chorbadzhiyski Committed by Luca Barbato

mpegts: improve error reporting

When reporting continuity error show pid, expected and received cc.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 162f1fbc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment