Commit 9bb25dbd authored by Stefano Sabatini's avatar Stefano Sabatini

examples/filtering_*: constify AVFrame * for print_frame() and display_frame() functions

parent 9076a6a9
...@@ -150,7 +150,7 @@ static int init_filters(const char *filters_descr) ...@@ -150,7 +150,7 @@ static int init_filters(const char *filters_descr)
return 0; 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 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]; const uint16_t *p = (uint16_t*)frame->data[0];
......
...@@ -138,7 +138,7 @@ static int init_filters(const char *filters_descr) ...@@ -138,7 +138,7 @@ static int init_filters(const char *filters_descr)
return 0; return 0;
} }
static void display_frame(AVFrame *frame, AVRational time_base) static void display_frame(const AVFrame *frame, AVRational time_base)
{ {
int x, y; int x, y;
uint8_t *p0, *p; uint8_t *p0, *p;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment