summaryrefslogtreecommitdiff
path: root/libavformat/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/tty.c')
-rw-r--r--libavformat/tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tty.c b/libavformat/tty.c
index 50514e8b08..8f2311dd1c 100644
--- a/libavformat/tty.c
+++ b/libavformat/tty.c
@@ -76,7 +76,7 @@ static int read_header(AVFormatContext *avctx,
{
TtyDemuxContext *s = avctx->priv_data;
int width = 0, height = 0, ret = 0;
- AVStream *st = av_new_stream(avctx, 0);
+ AVStream *st = avformat_new_stream(avctx, NULL);
AVRational framerate;
if (!st) {