Steve Jiekak wrote:
Hi everyone,
I saw that some functions in sdp.c use extradata in a AVCodecContext
structure
for writing SDP parameters, more specifically the sprop-parameter-sets
string. So I think
the codec Context should be for a H.264 file.
So what is this extradata ( used by function extradata2pset() ), and were is
it initiallized?
In general, extradata contains some "global headers" which are needed to
decode the stream (containing information like the frame size, etc...).
In case of H.264 video, the extradata can contain the PPS and SPS NALs.
The extradata can be filled by the encoder (see CODEC_FLAG_GLOBAL_HEADER),
by the demuxer, or by a bitstream filter (but when I tried this third
option I had some problems in the past).
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user