mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-03 11:07:41 +00:00
avformat/sapdec: Forward whitelists to sdp demuxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
24cd4e5071
commit
c5e337431b
@ -20,6 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/avstring.h"
|
#include "libavutil/avstring.h"
|
||||||
#include "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
#include "network.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->max_delay = s->max_delay;
|
||||||
sap->sdp_ctx->pb = &sap->sdp_pb;
|
sap->sdp_ctx->pb = &sap->sdp_pb;
|
||||||
sap->sdp_ctx->interrupt_callback = s->interrupt_callback;
|
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);
|
ret = avformat_open_input(&sap->sdp_ctx, "temp.sdp", infmt, NULL);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user