diff options
Diffstat (limited to 'libavformat/wtv.c')
-rw-r--r-- | libavformat/wtv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/wtv.c b/libavformat/wtv.c index c3cd5ebcda..4defc14e3c 100644 --- a/libavformat/wtv.c +++ b/libavformat/wtv.c @@ -626,9 +626,10 @@ static AVStream * new_stream(AVFormatContext *s, AVStream *st, int sid, int code WtvStream *wst = av_mallocz(sizeof(WtvStream)); if (!wst) return NULL; - st = av_new_stream(s, sid); + st = avformat_new_stream(s, NULL); if (!st) return NULL; + st->id = sid; st->priv_data = wst; } st->codec->codec_type = codec_type; |