History

avcodec/decode: remove unused argument from ff_frame_new_side_data_from_buf()

James Almer committed 2 years ago

Commit afb06ae1 parent e7d3ff87 files · +7 −7Browse files

Unified · Split

7 files
  1. libavcodec/av1dec.c +1 −1
  2. libavcodec/decode.c +1 −1
  3. libavcodec/decode.h +1 −1
  4. libavcodec/hevc/hevcdec.c +1 −1
  5. libavcodec/libdav1d.c +1 −1
  6. libavcodec/libjxldec.c +1 −1
  7. libavcodec/mpeg12dec.c +1 −1
libavcodec/av1dec.c+1−1
@@ -970,7 +970,7 @@ static int export_itut_t35(AVCodecContext *avctx, AVFrame *frame, · 969 unmodified lines
970970 if (!ret)
971971 break;
972972
973− ret = ff_frame_new_side_data_from_buf(avctx, frame, AV_FRAME_DATA_A53_CC, &buf, NULL);
973+ ret = ff_frame_new_side_data_from_buf(avctx, frame, AV_FRAME_DATA_A53_CC, &buf);
974974 if (ret < 0)
975975 return ret;
976976
libavcodec/decode.c+1−1
@@ -1996,7 +1996,7 @@ finish: · 1995 unmodified lines
19961996
19971997 int ff_frame_new_side_data_from_buf(const AVCodecContext *avctx,
19981998 AVFrame *frame, enum AVFrameSideDataType type,
1999− AVBufferRef **buf, AVFrameSideData **psd)
1999+ AVBufferRef **buf)
20002000 {
20012001 return ff_frame_new_side_data_from_buf_ext(avctx,
20022002 &frame->side_data, &frame->nb_side_data,
libavcodec/decode.h+1−1
@@ -173,7 +173,7 @@ int ff_frame_new_side_data(const AVCodecContext *avctx, AVFrame *frame, · 172 unmodified lines
173173 */
174174 int ff_frame_new_side_data_from_buf(const AVCodecContext *avctx,
175175 AVFrame *frame, enum AVFrameSideDataType type,
176− AVBufferRef **buf, AVFrameSideData **sd);
176+ AVBufferRef **buf);
177177
178178 /**
179179 * Same as `ff_frame_new_side_data_from_buf`, but taking a AVFrameSideData
libavcodec/hevc/hevcdec.c+1−1
@@ -2871,7 +2871,7 @@ static int set_side_data(HEVCContext *s) · 2870 unmodified lines
28712871 if (!info_ref)
28722872 return AVERROR(ENOMEM);
28732873
2874− ret = ff_frame_new_side_data_from_buf(s->avctx, out, AV_FRAME_DATA_DYNAMIC_HDR_PLUS, &info_ref, NULL);
2874+ ret = ff_frame_new_side_data_from_buf(s->avctx, out, AV_FRAME_DATA_DYNAMIC_HDR_PLUS, &info_ref);
28752875 if (ret < 0)
28762876 return ret;
28772877 }
libavcodec/libdav1d.c+1−1
@@ -528,7 +528,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame) · 527 unmodified lines
528528 if (!res)
529529 break;
530530
531− res = ff_frame_new_side_data_from_buf(c, frame, AV_FRAME_DATA_A53_CC, &buf, NULL);
531+ res = ff_frame_new_side_data_from_buf(c, frame, AV_FRAME_DATA_A53_CC, &buf);
532532 if (res < 0)
533533 goto fail;
534534
libavcodec/libjxldec.c+1−1
@@ -483,7 +483,7 @@ static int libjxl_receive_frame(AVCodecContext *avctx, AVFrame *frame) · 482 unmodified lines
483483 /* full image is one frame, even if animated */
484484 av_log(avctx, AV_LOG_DEBUG, "FULL_IMAGE event emitted\n");
485485 if (ctx->iccp) {
486− ret = ff_frame_new_side_data_from_buf(avctx, ctx->frame, AV_FRAME_DATA_ICC_PROFILE, &ctx->iccp, NULL);
486+ ret = ff_frame_new_side_data_from_buf(avctx, ctx->frame, AV_FRAME_DATA_ICC_PROFILE, &ctx->iccp);
487487 if (ret < 0)
488488 return ret;
489489 }
libavcodec/mpeg12dec.c+1−1
@@ -1307,7 +1307,7 @@ static int mpeg_field_start(Mpeg1Context *s1, const uint8_t *buf, int buf_size) · 1306 unmodified lines
13071307 if (s1->a53_buf_ref) {
13081308 ret = ff_frame_new_side_data_from_buf(
13091309 s->avctx, s->cur_pic.ptr->f, AV_FRAME_DATA_A53_CC,
1310− &s1->a53_buf_ref, NULL);
1310+ &s1->a53_buf_ref);
13111311 if (ret < 0)
13121312 return ret;
13131313 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t