X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavformat%2Fdfa.c;h=25084ef76dbe6217bf0047dc060b7e3c6e5f3ee8;hb=e4de71677f3adeac0f74b89ac8df5d417364df2c;hp=12ede0426de776adea2f3d8cc2482ab77c2d87ab;hpb=ef74ab20c255abf49b856c15f812cc9ea3fec061;p=ffmpeg diff --git a/libavformat/dfa.c b/libavformat/dfa.c index 12ede0426de..25084ef76db 100644 --- a/libavformat/dfa.c +++ b/libavformat/dfa.c @@ -21,6 +21,7 @@ #include "libavutil/intreadwrite.h" #include "avformat.h" +#include "internal.h" static int dfa_probe(AVProbeData *p) { @@ -45,7 +46,7 @@ static int dfa_read_header(AVFormatContext *s, avio_skip(pb, 2); // unused frames = avio_rl16(pb); - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); @@ -58,7 +59,7 @@ static int dfa_read_header(AVFormatContext *s, av_log(s, AV_LOG_WARNING, "Zero FPS reported, defaulting to 10\n"); mspf = 100; } - av_set_pts_info(st, 24, mspf, 1000); + avpriv_set_pts_info(st, 24, mspf, 1000); avio_skip(pb, 128 - 16); // padding st->duration = frames;