aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-23 15:27:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-23 15:28:49 +0200
commitc5e337431b797c5da9b6a88a8103255f1b29a4a4 (patch)
tree009041fb153fb3c2af8718ca012efbd936ef1908 /libavformat
parent24cd4e5071a710e3bdfd24efaf706e17cfec5b2c (diff)
downloadffmpeg-c5e337431b797c5da9b6a88a8103255f1b29a4a4.tar.gz
avformat/sapdec: Forward whitelists to sdp demuxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/sapdec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/sapdec.c b/libavformat/sapdec.c
index fe7bd825f2..dbef1d2bee 100644
--- a/libavformat/sapdec.c
+++ b/libavformat/sapdec.c
@@ -20,6 +20,7 @@
*/
#include "avformat.h"
+#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "network.h"
@@ -158,6 +159,11 @@ static int sap_read_header(AVFormatContext *s)
sap->sdp_ctx->max_delay = s->max_delay;
sap->sdp_ctx->pb = &sap->sdp_pb;
sap->sdp_ctx->interrupt_callback = s->interrupt_callback;
+
+ av_assert0(!sap->sdp_ctx->codec_whitelist && !sap->sdp_ctx->format_whitelist);
+ sap->sdp_ctx-> codec_whitelist = av_strdup(s->codec_whitelist);
+ sap->sdp_ctx->format_whitelist = av_strdup(s->format_whitelist);
+
ret = avformat_open_input(&sap->sdp_ctx, "temp.sdp", infmt, NULL);
if (ret < 0)
goto fail;