I have libavformat56 and libavformat-dev installed on my machine. I'm building some source right now which uses the libavformat.h header. The source (nameply the Pangolin library by Steven Lovegrove) correctly preprocessor-fences between
based on LIBAVFORMAT_VERSION_MAJOR (compared to 54).
This resolves to 56, thus the latter is used. I've checked the official header file over here for version 56, and, as expected avformat_alloc_output_context2 was there.
However, the very same header at /usr/include/libavformat/avformat.h on my system (currently at Utopic) only defines avformat_alloc_context.
Is this some kind of package bug, or is there something wrong I'm doing here?
P.S. if you feel like this should be asked on some different Stack Exchange forum, please let me know.
P.P.S. could anyone with libavformat-dev installed verify they don't have avformat_alloc_output_context2 in their header?