changeset 2541:90609bab3de3 libavformat

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)
author lucabe
date Mon, 10 Sep 2007 15:08:23 +0000
parents ca3cba9c641f
children 89030c7e2fa7
files sdp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sdp.c	Mon Sep 10 07:01:29 2007 +0000
+++ b/sdp.c	Mon Sep 10 15:08:23 2007 +0000
@@ -137,7 +137,7 @@
 
     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 @@
                                      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