[FFmpeg-devel] [PATCH] Mark AVFilterPad[] compound literals as const.
Clément Bœsch
ubitux at gmail.com
Sat Nov 5 15:09:39 CET 2011
On Sat, Nov 05, 2011 at 02:59:24PM +0100, Reimar Döffinger wrote:
> GCC 4.6.2 at least still seems to fail to put them in .rodata though.
[...]
> diff --git a/libavfilter/af_aconvert.c b/libavfilter/af_aconvert.c
> index fef096c..fc3dc8d 100644
> --- a/libavfilter/af_aconvert.c
> +++ b/libavfilter/af_aconvert.c
> @@ -406,12 +406,12 @@ AVFilter avfilter_af_aconvert = {
> .uninit = uninit,
> .query_formats = query_formats,
>
> - .inputs = (AVFilterPad[]) {{ .name = "default",
> + .inputs = (const AVFilterPad[]) {{ .name = "default",
> .type = AVMEDIA_TYPE_AUDIO,
> .filter_samples = filter_samples,
> .min_perms = AV_PERM_READ, },
> { .name = NULL}},
Do you mind keeping the vertical alignment? :)
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111105/8c59b7c2/attachment.asc>
More information about the ffmpeg-devel
mailing list