X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fncdec.c;h=cf95c631bd407dd4016405a652520f773692c35b;hb=482ee63641f4fa50f017538af384aadbceee7a18;hp=e04a6aae31e1849742f51ba5799d08b7a7032288;hpb=41f55277fafeec4f1b3202967bd0ab120948dd69;p=ffmpeg diff --git a/libavformat/ncdec.c b/libavformat/ncdec.c index e04a6aae31e..cf95c631bd4 100644 --- a/libavformat/ncdec.c +++ b/libavformat/ncdec.c @@ -22,6 +22,7 @@ #include "libavutil/intreadwrite.h" #include "avformat.h" +#include "internal.h" #define NC_VIDEO_FLAG 0x1A5 @@ -45,7 +46,7 @@ static int nc_probe(AVProbeData *probe_packet) static int nc_read_header(AVFormatContext *s, AVFormatParameters *ap) { - AVStream *st = av_new_stream(s, 0); + AVStream *st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); @@ -54,7 +55,7 @@ static int nc_read_header(AVFormatContext *s, AVFormatParameters *ap) st->codec->codec_id = CODEC_ID_MPEG4; st->need_parsing = AVSTREAM_PARSE_FULL; - av_set_pts_info(st, 64, 1, 100); + avpriv_set_pts_info(st, 64, 1, 100); return 0; }