ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Tue Sep 16 03:56:03 2014 +0200| [aaeae281a898f556b7b7d71a33761502949a20c3] | committer: Michael Niedermayer
avformat/mpegtsenc: More verbose warning messages in case of missing video ES startcodes Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aaeae281a898f556b7b7d71a33761502949a20c3 --- libavformat/mpegtsenc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 0184d87..791356c 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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog