diff mbox series

[FFmpeg-devel] avfilter/vf_showinfo: add const to the AVFrameSideData instance

Message ID 1599568420-2291-1-git-send-email-lance.lmwang@gmail.com
State Accepted
Headers show
Series [FFmpeg-devel] avfilter/vf_showinfo: add const to the AVFrameSideData instance | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Lance Wang Sept. 8, 2020, 12:33 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavfilter/vf_showinfo.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 1be9396..b9f1a49 100644
--- a/libavfilter/vf_showinfo.c
+++ b/libavfilter/vf_showinfo.c
@@ -57,7 +57,7 @@  static const AVOption showinfo_options[] = {
 
 AVFILTER_DEFINE_CLASS(showinfo);
 
-static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, AVFrameSideData *sd)
+static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, const AVFrameSideData *sd)
 {
     AVSphericalMapping *spherical = (AVSphericalMapping *)sd->data;
     double yaw, pitch, roll;
@@ -96,7 +96,7 @@  static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, AVFrameSideData
     }
 }
 
-static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd)
+static void dump_stereo3d(AVFilterContext *ctx, const AVFrameSideData *sd)
 {
     AVStereo3D *stereo;
 
@@ -114,7 +114,7 @@  static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd)
         av_log(ctx, AV_LOG_INFO, " (inverted)");
 }
 
-static void dump_s12m_timecode(AVFilterContext *ctx, AVFrameSideData *sd)
+static void dump_s12m_timecode(AVFilterContext *ctx, const AVFrameSideData *sd)
 {
     const uint32_t *tc = (const uint32_t *)sd->data;
 
@@ -130,7 +130,7 @@  static void dump_s12m_timecode(AVFilterContext *ctx, AVFrameSideData *sd)
     }
 }
 
-static void dump_roi(AVFilterContext *ctx, AVFrameSideData *sd)
+static void dump_roi(AVFilterContext *ctx, const AVFrameSideData *sd)
 {
     int nb_rois;
     const AVRegionOfInterest *roi;
@@ -152,7 +152,7 @@  static void dump_roi(AVFilterContext *ctx, AVFrameSideData *sd)
     }
 }
 
-static void dump_mastering_display(AVFilterContext *ctx, AVFrameSideData *sd)
+static void dump_mastering_display(AVFilterContext *ctx, const AVFrameSideData *sd)
 {
     AVMasteringDisplayMetadata *mastering_display;
 
@@ -178,7 +178,7 @@  static void dump_mastering_display(AVFilterContext *ctx, AVFrameSideData *sd)
            av_q2d(mastering_display->min_luminance), av_q2d(mastering_display->max_luminance));
 }
 
-static void dump_content_light_metadata(AVFilterContext *ctx, AVFrameSideData *sd)
+static void dump_content_light_metadata(AVFilterContext *ctx, const AVFrameSideData *sd)
 {
     AVContentLightMetadata* metadata = (AVContentLightMetadata*)sd->data;
 
@@ -187,7 +187,7 @@  static void dump_content_light_metadata(AVFilterContext *ctx, AVFrameSideData *s
            metadata->MaxCLL, metadata->MaxFALL);
 }
 
-static void dump_video_enc_params(AVFilterContext *ctx, AVFrameSideData *sd)
+static void dump_video_enc_params(AVFilterContext *ctx, const AVFrameSideData *sd)
 {
     AVVideoEncParams *par = (AVVideoEncParams*)sd->data;
     int plane, acdc;
@@ -206,7 +206,7 @@  static void dump_video_enc_params(AVFilterContext *ctx, AVFrameSideData *sd)
         av_log(ctx, AV_LOG_INFO, "%u blocks; ", par->nb_blocks);
 }
 
-static void dump_sei_unregistered_metadata(AVFilterContext *ctx, AVFrameSideData *sd)
+static void dump_sei_unregistered_metadata(AVFilterContext *ctx, const AVFrameSideData *sd)
 {
     const int uuid_size = 16;
     uint8_t *user_data = sd->data;