[FFmpeg-devel] [PATCH] h264 bitstream filter

Benoit Fouet benoit.fouet
Thu Aug 30 12:17:11 CEST 2007


M?ns Rullg?rd wrote:
> Benoit Fouet wrote:
>
>   
>> is there a function accessible to the bitstream filter than can get me
>> the NALU type ? or do i have to do it on my own in the filter ?
>>     
>
> The low 5 bits of the first byte of a NAL unit hold the type.
>
>   

yes, i already noticed ;)
i just wanted to use what was best... i'll just check unit type by
myself then.

>> i also think that i can "construct" the sps/pps NALU only once, instead
>> of doing it every time, but i don't know how to do it, as bsfs don't
>> have a cleanup function...
>>     
>
> Well, prepending 00 00 00 01 isn't all that much work...
>
>   

i was more thinking of (re)allocation, copying...
i think i'll try to use private data allocated by the bsf, as it will be
released by av_bitstream_filter_close
i'll come back soon with an updated patch, to illustrate.

Thanks

-- 
Ben
Purple Labs S.A.
www.purplelabs.com




More information about the ffmpeg-devel mailing list