[Libav-user] AVCC and Annex B

Sampsa Riikonen sampsa.riikonen at iki.fi
Mon May 14 20:26:27 EEST 2018

Dear List,

I have matroska muxed files that, instead of Annex B H264, have AVCC H264.

After doing ..

i=avformat_open_input(&input_context, filename, 
av_find_input_format("matroska"), NULL);

.. I can access the codec id with

input_context->streams[i]->codec->codec_id;  (codec is an AVCodecContext)

.. but how am I supposed to know if the payload is in AVCC or in Annex B 
format? .. from fourcc maybe?



More information about the Libav-user mailing list