summaryrefslogtreecommitdiff
path: root/libavformat/rdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rdt.c')
-rw-r--r--libavformat/rdt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rdt.c b/libavformat/rdt.c
index 9155cfc480..3f161f618c 100644
--- a/libavformat/rdt.c
+++ b/libavformat/rdt.c
@@ -459,8 +459,9 @@ add_dstream(AVFormatContext *s, AVStream *orig_st)
{
AVStream *st;
- if (!(st = av_new_stream(s, orig_st->id)))
+ if (!(st = avformat_new_stream(s, NULL)))
return NULL;
+ st->id = orig_st->id;
st->codec->codec_type = orig_st->codec->codec_type;
st->first_dts = orig_st->first_dts;