[FFmpeg-devel] [PATCH] Export H264 profile/level in AVCodecContext

Rafaël Carré rafael.carre
Thu Jan 28 14:02:29 CET 2010


Hi,

profile_idc / level_idc are copied verbatim to avctx after the sps has
been decoded.

Add descriptions of the profile to avcodec.h, level is self descriptive.


I am not sure of what happens in a multi threaded context:

Is it possible to have a stream with different sequences and different
profile/level combinations in each SPS ?

If it's the case I think AVCodecContext shouldn't be modified until all
the frames from the previous sequence have been decoded (the parser
should be safe on this point), and I don't know how to do that.

Thread synchronisation isn't obvious when reading h264.c, I only see
that execute_decode_slices() is the only user of avctx->execute() and
that it's called before & after SPS decoding in decode_nal_units()

If the first context waits for all the other contexts to finish
execution then it won't be a problem when using multiple threads.

-- 
Rafa?l Carr?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264-profile-level.diff
Type: text/x-patch
Size: 2099 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100128/d6506fc0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100128/d6506fc0/attachment.pgp>



More information about the ffmpeg-devel mailing list