• Andreas Rheinhardt's avatar
    avformat/internal: Don't include avcodec.h · 2b41463b
    Andreas Rheinhardt authored
    The general demuxing API uses parsers and decoders. Therefore
    FFStream contains pointers to AVCodecContexts and
    AVCodecParserContext and lavf/internal.h includes lavc/avcodec.h.
    
    Yet actually only a few files files really use these; and it is best
    when this number stays small. Therefore this commit uses opaque
    structs in lavf/internal.h for these contexts and stops including
    avcodec.h.
    This also avoids including lavc/codec_desc.h implicitly. All other
    headers are implicitly included as now (mostly through codec.h).
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    2b41463b
v4l2.c 37.5 KB