summaryrefslogtreecommitdiff
path: root/libavcodec/h264_parse.c
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2016-06-20 10:28:17 +0200
committerClément Bœsch <clement@stupeflix.com>2016-06-20 10:36:16 +0200
commit4fdea02d688cbe9a66db684b178180367cd5eb1b (patch)
treef609ec00fe5c19f00daa3ab1c4a701b834ce154b /libavcodec/h264_parse.c
parent432891a96e664d6c0e99a4d5ada78a87d561c92d (diff)
lavc/h264: add a logging ctx to ff_h264_pred_weight_table()
Diffstat (limited to 'libavcodec/h264_parse.c')
-rw-r--r--libavcodec/h264_parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/h264_parse.c b/libavcodec/h264_parse.c
index 58ca58a133..a63530de58 100644
--- a/libavcodec/h264_parse.c
+++ b/libavcodec/h264_parse.c
@@ -24,7 +24,7 @@
int ff_h264_pred_weight_table(GetBitContext *gb, const SPS *sps,
const int *ref_count, int slice_type_nos,
- H264PredWeightTable *pwt)
+ H264PredWeightTable *pwt, void *logctx)
{
int list, i;
int luma_def, chroma_def;
@@ -36,11 +36,11 @@ int ff_h264_pred_weight_table(GetBitContext *gb, const SPS *sps,
pwt->chroma_log2_weight_denom = get_ue_golomb(gb);
if (pwt->luma_log2_weight_denom > 7U) {
- av_log(NULL, AV_LOG_ERROR, "luma_log2_weight_denom %d is out of range\n", pwt->luma_log2_weight_denom);
+ av_log(logctx, AV_LOG_ERROR, "luma_log2_weight_denom %d is out of range\n", pwt->luma_log2_weight_denom);
pwt->luma_log2_weight_denom = 0;
}
if (pwt->chroma_log2_weight_denom > 7U) {
- av_log(NULL, AV_LOG_ERROR, "chroma_log2_weight_denom %d is out of range\n", pwt->chroma_log2_weight_denom);
+ av_log(logctx, AV_LOG_ERROR, "chroma_log2_weight_denom %d is out of range\n", pwt->chroma_log2_weight_denom);
pwt->chroma_log2_weight_denom = 0;
}