[FFmpeg-devel] [PATCH] Export H264 profile/level in AVCodecContext
Rafaël Carré
rafael.carre
Thu Jan 28 19:05:56 CET 2010
On Thu, 28 Jan 2010 16:53:02 +0100
Michael Niedermayer <michaelni at gmx.at> wrote:
> On Thu, Jan 28, 2010 at 02:02:29PM +0100, Rafa?l Carr? wrote:
> > diff --git a/libavcodec/h264.c b/libavcodec/h264.c
> > index e4a47cf..1ebe931 100644
> > --- a/libavcodec/h264.c
> > +++ b/libavcodec/h264.c
> > @@ -2589,7 +2589,10 @@ static int decode_nal_units(H264Context *h,
> > const uint8_t *buf, int buf_size){ break;
> > case NAL_SPS:
> > init_get_bits(&s->gb, ptr, bit_length);
> > - ff_h264_decode_seq_parameter_set(h);
> > + if(!ff_h264_decode_seq_parameter_set(h)) {
> > + avctx->profile = h->sps.profile_idc;
> > + avctx->level = h->sps.level_idc;
> > + }
>
> The active profile should be exportet not the one of the last sps
Move export after decoding of slice header
Bump avcodec minor version
--
Rafa?l Carr?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264-profile-level(2).diff
Type: text/x-patch
Size: 2559 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100128/dcfc0a62/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/dcfc0a62/attachment.pgp>
More information about the ffmpeg-devel
mailing list