[FFmpeg-devel] [PATCH] lavf/matroska: Export codecdelay and seekpreroll as metadata tags

James Almer jamrial at gmail.com
Tue Sep 17 22:59:34 CEST 2013


On 17/09/13 4:36 PM, Vignesh Venkatasubramanian wrote:
> +        /* export codec delay and seek preroll as metadata tags */
> +        if (track->codec_delay > 0) {
> +            char codec_delay[25];
> +            snprintf(codec_delay, sizeof(codec_delay), "%lu",

PRIu64

> +                     track->codec_delay);
> +            av_dict_set(&st->metadata, "codec_delay", codec_delay, 0);
> +        }
> +
> +        if (track->seek_preroll > 0) {
> +            char seek_preroll[25];
> +            snprintf(seek_preroll, sizeof(seek_preroll), "%lu",

Ditto

> +                     track->seek_preroll);
> +            av_dict_set(&st->metadata, "seek_preroll", seek_preroll, 0);
> +        }
> +
>          if (track->type == MATROSKA_TRACK_TYPE_VIDEO) {
>              MatroskaTrackPlane *planes = track->operation.combine_planes.elem;



More information about the ffmpeg-devel mailing list