mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-05 14:26:17 +00:00
using LIBAVFORMAT_IDENT
Originally committed as revision 2575 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d7d2428239
commit
4250dafc96
@ -184,13 +184,13 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr)
|
|||||||
|
|
||||||
snprintf(s->buffer, sizeof(s->buffer),
|
snprintf(s->buffer, sizeof(s->buffer),
|
||||||
"%s %s HTTP/1.0\n"
|
"%s %s HTTP/1.0\n"
|
||||||
"User-Agent: FFmpeg %s\n"
|
"User-Agent: %s\n"
|
||||||
"Accept: */*\n"
|
"Accept: */*\n"
|
||||||
"Host: %s\n"
|
"Host: %s\n"
|
||||||
"\n",
|
"\n",
|
||||||
post ? "POST" : "GET",
|
post ? "POST" : "GET",
|
||||||
path,
|
path,
|
||||||
LIBAVFORMAT_VERSION,
|
LIBAVFORMAT_IDENT,
|
||||||
hoststr);
|
hoststr);
|
||||||
|
|
||||||
if (http_write(h, s->buffer, strlen(s->buffer)) < 0)
|
if (http_write(h, s->buffer, strlen(s->buffer)) < 0)
|
||||||
|
@ -63,7 +63,7 @@ static int ogg_write_header(AVFormatContext *avfcontext)
|
|||||||
vorbis_block_init(&vd, &vb) ;
|
vorbis_block_init(&vd, &vb) ;
|
||||||
|
|
||||||
vorbis_comment_init(&vc) ;
|
vorbis_comment_init(&vc) ;
|
||||||
vorbis_comment_add_tag(&vc, "encoder", "ffmpeg") ;
|
vorbis_comment_add_tag(&vc, "encoder", LIBAVFORMAT_IDENT) ;
|
||||||
if(*avfcontext->title)
|
if(*avfcontext->title)
|
||||||
vorbis_comment_add_tag(&vc, "title", avfcontext->title) ;
|
vorbis_comment_add_tag(&vc, "title", avfcontext->title) ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user