[FFmpeg-cvslog] r10471 - trunk/libavformat/sdp.c
lucabe
subversion
Mon Sep 10 17:08:24 CEST 2007
Author: lucabe
Date: Mon Sep 10 17:08:23 2007
New Revision: 10471
Log:
Test extradata_size instead of the CODEC_FLAG_GLOBAL_HEADER flag to check if
config info are available out of band (fix "-{a,v}codec copy" from .mov)
Modified:
trunk/libavformat/sdp.c
Modified: trunk/libavformat/sdp.c
==============================================================================
--- trunk/libavformat/sdp.c (original)
+++ trunk/libavformat/sdp.c Mon Sep 10 17:08:23 2007
@@ -137,7 +137,7 @@ static char *sdp_media_attributes(char *
switch (c->codec_id) {
case CODEC_ID_MPEG4:
- if (c->flags & CODEC_FLAG_GLOBAL_HEADER) {
+ if (c->extradata_size) {
config = extradata2config(c->extradata, c->extradata_size);
}
av_strlcatf(buff, size, "a=rtpmap:%d MP4V-ES/90000\r\n"
@@ -146,7 +146,7 @@ static char *sdp_media_attributes(char *
payload_type, config ? config : "");
break;
case CODEC_ID_AAC:
- if (c->flags & CODEC_FLAG_GLOBAL_HEADER) {
+ if (c->extradata_size) {
config = extradata2config(c->extradata, c->extradata_size);
} else {
/* FIXME: maybe we can forge config information based on the
More information about the ffmpeg-cvslog
mailing list