You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user