Permalink
Browse files

Refs #10794. Add some debugging for failed CRC.

Signed-off-by: Daniel Kristjansson <danielk@cuymedia.net>
  • Loading branch information...
Lawrence Rust authored and daniel-kristjansson committed Jul 25, 2012
1 parent ac1fd96 commit c353a84ea3398ca9b8d39c33f0247e86b1fb7797
Showing with 5 additions and 0 deletions.
  1. +5 −0 mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c
@@ -399,6 +399,8 @@ static void write_section_data(AVFormatContext *s, MpegTSFilter *tss1,
av_crc(av_crc_get_table(AV_CRC_32_IEEE), -1,
tss->section_buf, tss->section_h_size) == 0)
tss->section_cb(tss1, tss->section_buf, tss->section_h_size);
+ else
+ av_log(s, AV_LOG_WARNING, "write_section_data: PID %#x CRC error\n", tss1->pid);
if (tss->section_index > tss->section_h_size) {
int left = tss->section_index - tss->section_h_size;
@@ -2516,7 +2518,10 @@ static int handle_packet(MpegTSContext *ts, const uint8_t *packet)
/* pointer field present */
len = *p++;
if (p + len > p_end)
+ {
+ av_log(s, AV_LOG_WARNING, "handle_packet: Last section data too long on PID=%#x, %d\n", pid, cc);
return 0;
+ }
if (len && cc_ok) {
/* write remaining section bytes */
write_section_data(s, tss,

0 comments on commit c353a84

Please sign in to comment.