From 9bb25dbd13e0e1a41fc781618acdaedbe2a1c3bb Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 14 Mar 2013 21:38:07 +0100 Subject: [PATCH] examples/filtering_*: constify AVFrame * for print_frame() and display_frame() functions --- doc/examples/filtering_audio.c | 2 +- doc/examples/filtering_video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c index 01e692688a..456a1c9862 100644 --- a/doc/examples/filtering_audio.c +++ b/doc/examples/filtering_audio.c @@ -150,7 +150,7 @@ static int init_filters(const char *filters_descr) return 0; } -static void print_frame(AVFrame *frame) +static void print_frame(const AVFrame *frame) { const int n = frame->nb_samples * av_get_channel_layout_nb_channels(av_frame_get_channel_layout(frame)); const uint16_t *p = (uint16_t*)frame->data[0]; diff --git a/doc/examples/filtering_video.c b/doc/examples/filtering_video.c index 251f0feaec..daa39666fe 100644 --- a/doc/examples/filtering_video.c +++ b/doc/examples/filtering_video.c @@ -138,7 +138,7 @@ static int init_filters(const char *filters_descr) return 0; } -static void display_frame(AVFrame *frame, AVRational time_base) +static void display_frame(const AVFrame *frame, AVRational time_base) { int x, y; uint8_t *p0, *p;