summaryrefslogtreecommitdiff
path: root/libavformat/mpegtsenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-16 03:56:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-16 03:56:37 +0200
commitaaeae281a898f556b7b7d71a33761502949a20c3 (patch)
tree7f0e373f97a158c10f6c9322eb0a5bcd97166ab0 /libavformat/mpegtsenc.c
parentb76d6132e385fc4d05b42b03caa82eca3025092e (diff)
avformat/mpegtsenc: More verbose warning messages in case of missing video ES startcodes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r--libavformat/mpegtsenc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 0184d87149..791356c704 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -1197,7 +1197,9 @@ int ff_check_h264_startcode(AVFormatContext *s, const AVStream *st, const AVPack
"('-bsf:v h264_mp4toannexb' option with ffmpeg)\n");
return AVERROR_INVALIDDATA;
}
- av_log(s, AV_LOG_WARNING, "H.264 bitstream error, startcode missing\n");
+ av_log(s, AV_LOG_WARNING, "H.264 bitstream error, startcode missing, size %d", pkt->size);
+ if (pkt->size) av_log(s, AV_LOG_WARNING, " data %08X", AV_RB32(pkt->data));
+ av_log(s, AV_LOG_WARNING, "\n");
}
return 0;
}
@@ -1209,7 +1211,9 @@ static int check_hevc_startcode(AVFormatContext *s, const AVStream *st, const AV
av_log(s, AV_LOG_ERROR, "HEVC bitstream malformed, no startcode found\n");
return AVERROR_PATCHWELCOME;
}
- av_log(s, AV_LOG_WARNING, "HEVC bitstream error, startcode missing\n");
+ av_log(s, AV_LOG_WARNING, "HEVC bitstream error, startcode missing, size %d", pkt->size);
+ if (pkt->size) av_log(s, AV_LOG_WARNING, " data %08X", AV_RB32(pkt->data));
+ av_log(s, AV_LOG_WARNING, "\n");
}
return 0;
}