mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
avcodec/bfi: Provide non NULL context to av_log()
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b89fc3d01b
commit
1dcb5b7dca
@ -71,7 +71,7 @@ static int bfi_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
frame->key_frame = 1;
|
frame->key_frame = 1;
|
||||||
/* Setting the palette */
|
/* Setting the palette */
|
||||||
if (avctx->extradata_size > 768) {
|
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;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
pal = (uint32_t *)frame->data[1];
|
pal = (uint32_t *)frame->data[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user