forked from FFmpeg/FFmpeg
avcodec/decode: remove unused argument from ff_frame_new_side_data_from_buf()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
e7d3ff8dcd
commit
afb06aef7e
7 changed files with 7 additions and 7 deletions
|
@ -970,7 +970,7 @@ static int export_itut_t35(AVCodecContext *avctx, AVFrame *frame,
|
||||||
if (!ret)
|
if (!ret)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ret = ff_frame_new_side_data_from_buf(avctx, frame, AV_FRAME_DATA_A53_CC, &buf, NULL);
|
ret = ff_frame_new_side_data_from_buf(avctx, frame, AV_FRAME_DATA_A53_CC, &buf);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
|
@ -1996,7 +1996,7 @@ finish:
|
||||||
|
|
||||||
int ff_frame_new_side_data_from_buf(const AVCodecContext *avctx,
|
int ff_frame_new_side_data_from_buf(const AVCodecContext *avctx,
|
||||||
AVFrame *frame, enum AVFrameSideDataType type,
|
AVFrame *frame, enum AVFrameSideDataType type,
|
||||||
AVBufferRef **buf, AVFrameSideData **psd)
|
AVBufferRef **buf)
|
||||||
{
|
{
|
||||||
return ff_frame_new_side_data_from_buf_ext(avctx,
|
return ff_frame_new_side_data_from_buf_ext(avctx,
|
||||||
&frame->side_data, &frame->nb_side_data,
|
&frame->side_data, &frame->nb_side_data,
|
||||||
|
|
|
@ -173,7 +173,7 @@ int ff_frame_new_side_data(const AVCodecContext *avctx, AVFrame *frame,
|
||||||
*/
|
*/
|
||||||
int ff_frame_new_side_data_from_buf(const AVCodecContext *avctx,
|
int ff_frame_new_side_data_from_buf(const AVCodecContext *avctx,
|
||||||
AVFrame *frame, enum AVFrameSideDataType type,
|
AVFrame *frame, enum AVFrameSideDataType type,
|
||||||
AVBufferRef **buf, AVFrameSideData **sd);
|
AVBufferRef **buf);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Same as `ff_frame_new_side_data_from_buf`, but taking a AVFrameSideData
|
* Same as `ff_frame_new_side_data_from_buf`, but taking a AVFrameSideData
|
||||||
|
|
|
@ -2871,7 +2871,7 @@ static int set_side_data(HEVCContext *s)
|
||||||
if (!info_ref)
|
if (!info_ref)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
ret = ff_frame_new_side_data_from_buf(s->avctx, out, AV_FRAME_DATA_DYNAMIC_HDR_PLUS, &info_ref, NULL);
|
ret = ff_frame_new_side_data_from_buf(s->avctx, out, AV_FRAME_DATA_DYNAMIC_HDR_PLUS, &info_ref);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -528,7 +528,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
|
||||||
if (!res)
|
if (!res)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
res = ff_frame_new_side_data_from_buf(c, frame, AV_FRAME_DATA_A53_CC, &buf, NULL);
|
res = ff_frame_new_side_data_from_buf(c, frame, AV_FRAME_DATA_A53_CC, &buf);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
|
|
@ -483,7 +483,7 @@ static int libjxl_receive_frame(AVCodecContext *avctx, AVFrame *frame)
|
||||||
/* full image is one frame, even if animated */
|
/* full image is one frame, even if animated */
|
||||||
av_log(avctx, AV_LOG_DEBUG, "FULL_IMAGE event emitted\n");
|
av_log(avctx, AV_LOG_DEBUG, "FULL_IMAGE event emitted\n");
|
||||||
if (ctx->iccp) {
|
if (ctx->iccp) {
|
||||||
ret = ff_frame_new_side_data_from_buf(avctx, ctx->frame, AV_FRAME_DATA_ICC_PROFILE, &ctx->iccp, NULL);
|
ret = ff_frame_new_side_data_from_buf(avctx, ctx->frame, AV_FRAME_DATA_ICC_PROFILE, &ctx->iccp);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1307,7 +1307,7 @@ static int mpeg_field_start(Mpeg1Context *s1, const uint8_t *buf, int buf_size)
|
||||||
if (s1->a53_buf_ref) {
|
if (s1->a53_buf_ref) {
|
||||||
ret = ff_frame_new_side_data_from_buf(
|
ret = ff_frame_new_side_data_from_buf(
|
||||||
s->avctx, s->cur_pic.ptr->f, AV_FRAME_DATA_A53_CC,
|
s->avctx, s->cur_pic.ptr->f, AV_FRAME_DATA_A53_CC,
|
||||||
&s1->a53_buf_ref, NULL);
|
&s1->a53_buf_ref);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue