diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-05 17:39:24 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-06 03:05:14 +0400 |
commit | 5af7daabc471b9b523561264c95e7b1fc258d0f8 (patch) | |
tree | aad6252488e2cb1f74ce21121b3aedbd6b478fc3 /libavfilter/src_movie.c | |
parent | d9010daa6ffc053a41f702dd4c3483eb745355a9 (diff) |
Mark AVFilterPad[] compound literals as const.
GCC 4.6.2 at least still seems to fail to put them in .rodata though,
see also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37303
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavfilter/src_movie.c')
-rw-r--r-- | libavfilter/src_movie.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index c37195a331..feb0285127 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -322,8 +322,8 @@ AVFilter avfilter_vsrc_movie = { .uninit = movie_common_uninit, .query_formats = movie_query_formats, - .inputs = (AVFilterPad[]) {{ .name = NULL }}, - .outputs = (AVFilterPad[]) {{ .name = "default", + .inputs = (const AVFilterPad[]) {{ .name = NULL }}, + .outputs = (const AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_VIDEO, .request_frame = movie_request_frame, .config_props = movie_config_output_props, }, @@ -463,8 +463,8 @@ AVFilter avfilter_asrc_amovie = { .uninit = movie_common_uninit, .query_formats = amovie_query_formats, - .inputs = (AVFilterPad[]) {{ .name = NULL }}, - .outputs = (AVFilterPad[]) {{ .name = "default", + .inputs = (const AVFilterPad[]) {{ .name = NULL }}, + .outputs = (const AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_AUDIO, .request_frame = amovie_request_frame, .config_props = amovie_config_output_props, }, |