"Ronald S. Bultje" <[email protected]> writes:
> From: "Ronald S. Bultje" <[email protected]>
>
> MSVC gives a compile error on the forward declaration of the table.
It's not a forward declaration (no such term is even defined in the C
standard), it is a tentative definition. Please try to use accurate
terminology.
> ---
> libavformat/mov.c | 148
> ++++++++++++++++++++++++++---------------------------
> 1 file changed, 74 insertions(+), 74 deletions(-)
>
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index 6ddecd1..647fd0e 100644
> --- a/libavformat/mov.c
> +++ b/libavformat/mov.c
> @@ -64,7 +64,7 @@ typedef struct MOVParseTableEntry {
> int (*parse)(MOVContext *ctx, AVIOContext *pb, MOVAtom atom);
> } MOVParseTableEntry;
>
> -static const MOVParseTableEntry mov_default_parse_table[];
> +static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom);
I don't really mind the change. Neither way is prettier than the other.
--
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel