# HG changeset patch # User lucabe # Date 1189436903 0 # Node ID 90609bab3de315f9649eeb9dff15fba39d551fa5 # Parent ca3cba9c641f7444a53a27d266a162bcebcff43d 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) diff -r ca3cba9c641f -r 90609bab3de3 sdp.c --- 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