X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fnuv.c;h=21df6d285652a5450912328efd149735bee69cdf;hb=231ffb9243e5286b7c3d5806fa8f3142c72bfe15;hp=e48c85a789f9998eddff50143b1a8a7364fa213f;hpb=93342de1d88081822dad55af70dd4738cd15d242;p=ffmpeg diff --git a/libavformat/nuv.c b/libavformat/nuv.c index e48c85a789f..21df6d28565 100644 --- a/libavformat/nuv.c +++ b/libavformat/nuv.c @@ -163,7 +163,10 @@ static int nuv_header(AVFormatContext *s) { vst->codec->height = height; vst->codec->bits_per_coded_sample = 10; vst->sample_aspect_ratio = av_d2q(aspect * height / width, 10000); - vst->r_frame_rate = av_d2q(fps, 60000); +#if FF_API_R_FRAME_RATE + vst->r_frame_rate = +#endif + vst->avg_frame_rate = av_d2q(fps, 60000); avpriv_set_pts_info(vst, 32, 1, 1000); } else ctx->v_id = -1; @@ -335,7 +338,7 @@ static int64_t nuv_read_dts(AVFormatContext *s, int stream_index, AVInputFormat ff_nuv_demuxer = { .name = "nuv", - .long_name = NULL_IF_CONFIG_SMALL("NuppelVideo format"), + .long_name = NULL_IF_CONFIG_SMALL("NuppelVideo"), .priv_data_size = sizeof(NUVContext), .read_probe = nuv_probe, .read_header = nuv_header,