You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/h264_ps: Show VUI and SPS overread messages just once per frame thread
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -579,7 +579,8 @@ int ff_h264_decode_seq_parameter_set(GetBitContext *gb, AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (get_bits_left(gb) < 0) {
|
if (get_bits_left(gb) < 0) {
|
||||||
av_log(avctx, ignore_truncation ? AV_LOG_WARNING : AV_LOG_ERROR,
|
av_log_once(avctx, ignore_truncation ? AV_LOG_WARNING : AV_LOG_ERROR, AV_LOG_DEBUG,
|
||||||
|
&ps->overread_warning_printed[sps->vui_parameters_present_flag],
|
||||||
"Overread %s by %d bits\n", sps->vui_parameters_present_flag ? "VUI" : "SPS", -get_bits_left(gb));
|
"Overread %s by %d bits\n", sps->vui_parameters_present_flag ? "VUI" : "SPS", -get_bits_left(gb));
|
||||||
if (!ignore_truncation)
|
if (!ignore_truncation)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
@@ -144,6 +144,8 @@ typedef struct H264ParamSets {
|
|||||||
/* currently active parameters sets */
|
/* currently active parameters sets */
|
||||||
const PPS *pps;
|
const PPS *pps;
|
||||||
const SPS *sps;
|
const SPS *sps;
|
||||||
|
|
||||||
|
int overread_warning_printed[2];
|
||||||
} H264ParamSets;
|
} H264ParamSets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user