[FFmpeg-cvslog] h264_mp4toannexb_bsf: support 24bit lengths
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Mar 21 22:08:55 CET 2012
On Wed, Mar 21, 2012 at 10:04:53PM +0100, gs_gail wrote:
> - if (ctx->length_size == 1) {
> - nal_size = buf[0];
> - } else if (ctx->length_size == 2) {
> - nal_size = AV_RB16(buf);
> - } else
> - nal_size = AV_RB32(buf);
> + for(nal_size = 0, unit_type = 0; unit_type<ctx->length_size; unit_type++)
> + nal_size = (nal_size << 8) | buf[unit_type];
I'd like to request an extra variable like "i" instead of mis-/reusing
unit_type.
More information about the ffmpeg-cvslog
mailing list