avformat/mpegtsenc: More verbose warning messages in case of missing video ES startcodes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-09-16 03:56:03 +02:00
parent b76d6132e3
commit aaeae281a8
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}