[Ffmpeg-cvslog] CVS: ffmpeg/libavformat movenc.c,1.80,1.81

Alex Beregszaszi alex
Fri May 26 22:48:55 CEST 2006


Hi,
 
> +        // Encoder
> +        len = strlen(LIBAVCODEC_IDENT)+1;
> +        put_be16(pb, len*2+10);             /* size */
> +        put_be32(pb, 0x04);                 /* type */
> +        put_be16(pb, language_code("eng")); /* language */
> +        put_be16(pb, 0x01);                 /* ? */
> +        ascii_to_wc(pb, LIBAVCODEC_IDENT, len);
> +        size += len*2+10;

check for bitexact missing?

> +        // Date
> +//        snprintf(dt,32,"%04d/%02d/%02d
> %02d:%02d:%02d",t_st->tm_year+1900,t_st->tm_mon+1,t_st->tm_mday,t_st-
> >tm_hour,t_st->tm_min,t_st->tm_sec);
> +        len = strlen("2006/04/01 11:11:11")+1;
> +        put_be16(pb, len*2+10);    /* size */
> +        put_be32(pb, 0x03);        /* type */
> +        put_be16(pb, language_code("und")); /* language */
> +        put_be16(pb, 0x01);        /* ? */
> +        ascii_to_wc (pb, "2006/04/01 11:11:11", len);
> +        size += len*2+10;

What about adding "paranoid" mode, which disables all timestamp dumps,
but else it should write correct values. Of course paranoid mode could
be turned on by default. And I think writing unix epoch would be nicer
:)

-- 
Alex Beregszaszi 			email: alex at fsn.hu
Free Software Network			cell: +36 70 3144424




More information about the ffmpeg-cvslog mailing list