[FFmpeg-cvslog] avcodec/bfi: Provide non NULL context to av_log()
Michael Niedermayer
git at videolan.org
Wed Jan 2 01:24:32 EET 2019
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Dec 31 21:32:37 2018 +0100| [1dcb5b7dca2bbaa7e2dfa062c0941f5509c238f4] | committer: Michael Niedermayer
avcodec/bfi: Provide non NULL context to av_log()
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1dcb5b7dca2bbaa7e2dfa062c0941f5509c238f4
---
libavcodec/bfi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/bfi.c b/libavcodec/bfi.c
index 233a1d27a8..a4cb002053 100644
--- a/libavcodec/bfi.c
+++ b/libavcodec/bfi.c
@@ -71,7 +71,7 @@ static int bfi_decode_frame(AVCodecContext *avctx, void *data,
frame->key_frame = 1;
/* Setting the palette */
if (avctx->extradata_size > 768) {
- av_log(NULL, AV_LOG_ERROR, "Palette is too large.\n");
+ av_log(avctx, AV_LOG_ERROR, "Palette is too large.\n");
return AVERROR_INVALIDDATA;
}
pal = (uint32_t *)frame->data[1];
More information about the ffmpeg-cvslog
mailing list