diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-01-16 19:51:29 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-02-12 12:25:25 +0300 |
commit | d9751a116275ec0281ea7c4bd28d8d10b457e264 (patch) | |
tree | 02e9131c0521e9d1fff428dd78559967c3f56a43 /libavcodec/h264_ps.c | |
parent | 3182114f8815cb3324dd300d8254ecdb07dbe097 (diff) |
avcodec/h264_ps: Show VUI and SPS overread messages just once per frame thread
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/h264_ps.c')
-rw-r--r-- | libavcodec/h264_ps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index edbaa96b64..d36921e47b 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -579,7 +579,8 @@ int ff_h264_decode_seq_parameter_set(GetBitContext *gb, AVCodecContext *avctx, } 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)); if (!ignore_truncation) goto fail; |