[FFmpeg-devel] compile errors on current master - libavcodec/audiotoolboxdec.c

Helmut K. C. Tessarek tessarek at evermeet.cx
Sat Oct 28 01:38:01 EEST 2017


Getting the following compile errors. I got this just now with current
master when I tried to compile today's snapshot...

2 days ago, all was good.

libavcodec/audiotoolboxdec.c:353:9: error: use of undeclared identifier
'AC3HeaderInfo'
        AC3HeaderInfo hdr;
        ^
libavcodec/audiotoolboxdec.c:354:9: error: unknown type name
'GetBitContext'; did you mean 'GetByteContext'?
        GetBitContext gbc;
        ^~~~~~~~~~~~~
        GetByteContext
libavcodec/bytestream.h:35:3: note: 'GetByteContext' declared here
} GetByteContext;
  ^
libavcodec/audiotoolboxdec.c:355:9: error: implicit declaration of
function 'init_get_bits' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
        init_get_bits(&gbc, pkt->data, pkt->size);
        ^
libavcodec/audiotoolboxdec.c:356:13: error: implicit declaration of
function 'ff_ac3_parse_header' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
        if (ff_ac3_parse_header(&gbc, &hdr) < 0)
            ^
libavcodec/audiotoolboxdec.c:356:13: note: did you mean
'av_ac3_parse_header'?
libavcodec/ac3_parser.h:32:5: note: 'av_ac3_parse_header' declared here
int av_ac3_parse_header(const uint8_t *buf, size_t size,
    ^
libavcodec/audiotoolboxdec.c:356:40: error: use of undeclared identifier
'hdr'
        if (ff_ac3_parse_header(&gbc, &hdr) < 0)
                                       ^
libavcodec/audiotoolboxdec.c:358:33: error: use of undeclared identifier
'hdr'
        in_format.mSampleRate = hdr.sample_rate;
                                ^
libavcodec/audiotoolboxdec.c:359:39: error: use of undeclared identifier
'hdr'
        in_format.mChannelsPerFrame = hdr.channels;
                                      ^
libavcodec/audiotoolboxdec.c:360:29: error: use of undeclared identifier
'hdr'
        avctx->frame_size = hdr.num_blocks * 256;
                            ^
libavcodec/audiotoolboxdec.c:361:27: error: use of undeclared identifier
'hdr'
        avctx->bit_rate = hdr.bit_rate;
                          ^

-- 
regards Helmut K. C. Tessarek              KeyID 0xF7832007C11F128D
Key fingerprint = 28A3 1666 4FE8 D72C CFD5 8B23 F783 2007 C11F 128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/


More information about the ffmpeg-devel mailing list