[SCM] libav/experimental: using LIBAVFORMAT_IDENT

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:38:33 UTC 2013


The following commit has been merged in the experimental branch:
commit 4250dafc961b53aaba41c7bb48e765cff1f284c4
Author: Alex Beregszaszi <alex at rtfs.hu>
Date:   Mon Dec 8 17:50:38 2003 +0000

    using LIBAVFORMAT_IDENT
    
    Originally committed as revision 2575 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/http.c b/libavformat/http.c
index b052683..e992865 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -184,13 +184,13 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr)
 
     snprintf(s->buffer, sizeof(s->buffer),
              "%s %s HTTP/1.0\n"
-             "User-Agent: FFmpeg %s\n"
+             "User-Agent: %s\n"
              "Accept: */*\n"
              "Host: %s\n"
              "\n",
              post ? "POST" : "GET",
              path,
-             LIBAVFORMAT_VERSION,
+             LIBAVFORMAT_IDENT,
              hoststr);
     
     if (http_write(h, s->buffer, strlen(s->buffer)) < 0)
diff --git a/libavformat/ogg.c b/libavformat/ogg.c
index c127ff7..129c8c4 100644
--- a/libavformat/ogg.c
+++ b/libavformat/ogg.c
@@ -63,7 +63,7 @@ static int ogg_write_header(AVFormatContext *avfcontext)
 	vorbis_block_init(&vd, &vb) ;
 	
 	vorbis_comment_init(&vc) ;
-	vorbis_comment_add_tag(&vc, "encoder", "ffmpeg") ;
+	vorbis_comment_add_tag(&vc, "encoder", LIBAVFORMAT_IDENT) ;
 	if(*avfcontext->title)
 	    vorbis_comment_add_tag(&vc, "title", avfcontext->title) ;
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list