[FFmpeg-devel] [PATCH] muxing chapters in matroska

Aurelien Jacobs aurel
Sun Oct 18 14:23:17 CEST 2009


On Thu, Oct 15, 2009 at 06:54:10PM +0200, Anton Khirnov wrote:
> Hi,
> attached patches add support for muxing chapters to matroskaenc, and
> make ffmpeg.c copy chapters with other metadata.
> 
> Anton Khirnov

> From 67bea734ceca8a3c0f83fed9f7a993e7c18da1f1 Mon Sep 17 00:00:00 2001
> From: Anton Khirnov <wyskas at gmail.com>
> Date: Wed, 17 Sep 2008 09:33:03 +0200
> Subject: [PATCH 1/2] matroskaenc: Add support for writing chapters.
> 
> ---
>  libavformat/matroskaenc.c |   48 +++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 48 insertions(+), 0 deletions(-)
> 
> diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
> index a03b11b..22406a7 100644
> --- a/libavformat/matroskaenc.c
> +++ b/libavformat/matroskaenc.c
> +
> + [...]
> +
> +        if((t = av_metadata_get(c->metadata, "title", NULL, 0))) {
> +            av_log(s, AV_LOG_ERROR, "writing chapter %s\n", t->value);

Looks like a debugging leftover. Except that, patch looks OK.
Applied with the debugging statement removed.

Aurel



More information about the ffmpeg-devel mailing list