@@ -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;