X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ftxd.c;h=06aca8c3f4ec700be6e3eb39176be84c6dc3bd1d;hb=a9ef21bbe2eb0115cfcb048d53f084e900092e71;hp=692821679183e9736f61dd988c339855c4fd5dab;hpb=f22bc68dc0de214ba893c15e2a5e80731ab19959;p=ffmpeg diff --git a/libavformat/txd.c b/libavformat/txd.c index 69282167918..06aca8c3f4e 100644 --- a/libavformat/txd.c +++ b/libavformat/txd.c @@ -40,7 +40,7 @@ static int txd_probe(AVProbeData * pd) { static int txd_read_header(AVFormatContext *s, AVFormatParameters *ap) { AVStream *st; - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); st->codec->codec_type = AVMEDIA_TYPE_VIDEO; @@ -48,6 +48,7 @@ static int txd_read_header(AVFormatContext *s, AVFormatParameters *ap) { st->codec->time_base.den = 5; st->codec->time_base.num = 1; /* the parameters will be extracted from the compressed bitstream */ + return 0; }