examples/filtering_*: constify AVFrame * for print_frame() and display_frame() functions
authorStefano Sabatini <stefasab@gmail.com>
Thu, 14 Mar 2013 20:38:07 +0000 (21:38 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 14 Mar 2013 20:39:15 +0000 (21:39 +0100)
doc/examples/filtering_audio.c
doc/examples/filtering_video.c

index 01e692688a66c2b7945779929c5a74fdc462662d..456a1c9862d423e4f8e4cd2d670b82da5b269516 100644 (file)
@@ -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];
index 251f0feaec90c5e2307e4b8835098504e1b83eac..daa39666fe94a56801a7dacc2e3d592ba44e4d87 100644 (file)
@@ -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;