[FFmpeg-devel] [PATCH] use new metadata API in mpegts

Michael Niedermayer michaelni
Thu Feb 5 04:33:18 CET 2009


On Thu, Feb 05, 2009 at 01:21:59AM +0100, Aurelien Jacobs wrote:
> Hi,
> 
> The first 2 patches use the new metadata API respectively in the mpegts
> demuxer and muxer.
> The 3rd patch removes the av_set_program_name() function, which, despite his
> name, never was part of public API, and which is not used anymore.

[...]

> Index: libavformat/utils.c
> ===================================================================
> --- libavformat/utils.c	(revision 16826)
> +++ libavformat/utils.c	(working copy)
> @@ -2354,17 +2354,6 @@
>      return program;
>  }
>  
> -void av_set_program_name(AVProgram *program, char *provider_name, char *name)
> -{
> -    assert(!provider_name == !name);
> -    if(name){
> -        av_free(program->provider_name);
> -        av_free(program->         name);
> -        program->provider_name = av_strdup(provider_name);
> -        program->         name = av_strdup(         name);
> -    }
> -}
> -
>  AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base, int64_t start, int64_t end, const char *title)
>  {
>      AVChapter *chapter = NULL;
> Index: libavformat/internal.h
> ===================================================================
> --- libavformat/internal.h	(revision 16826)
> +++ libavformat/internal.h	(working copy)
> @@ -26,7 +26,6 @@
>  
>  char *ff_data_to_hex(char *buf, const uint8_t *src, int size);
>  
> -void av_set_program_name(AVProgram *program, char *provider_name, char *name);
>  void av_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx);
>  
>  #endif /* AVFORMAT_INTERNAL_H */

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Frequently ignored awnser#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090205/cc9ce769/attachment.pgp>



More information about the ffmpeg-devel mailing list