summaryrefslogtreecommitdiff
path: root/libavdevice/libndi_newtek_dec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-10-29 14:40:38 -0300
committerJames Almer <jamrial@gmail.com>2017-10-29 14:42:48 -0300
commit2245476e5c451552f8f32a4a881f6b4968898a47 (patch)
tree0fe4769926f0e9310d99077d64a41d3baf4249d0 /libavdevice/libndi_newtek_dec.c
parent5cc5130c813fd89e5a8b998e504908ef36bed0f1 (diff)
avdevice: remove usage of deprecated setter and getter functions
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice/libndi_newtek_dec.c')
-rw-r--r--libavdevice/libndi_newtek_dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/libndi_newtek_dec.c b/libavdevice/libndi_newtek_dec.c
index 8cbcd9a1d2..5bbaa39786 100644
--- a/libavdevice/libndi_newtek_dec.c
+++ b/libavdevice/libndi_newtek_dec.c
@@ -189,7 +189,7 @@ static int ndi_create_video_stream(AVFormatContext *avctx, NDIlib_video_frame_t
}
st->time_base = NDI_TIME_BASE_Q;
- av_stream_set_r_frame_rate(st, av_make_q(v->frame_rate_N, v->frame_rate_D));
+ st->r_frame_rate = av_make_q(v->frame_rate_N, v->frame_rate_D));
tmp = av_mul_q(av_d2q(v->picture_aspect_ratio, INT_MAX), (AVRational){v->yres, v->xres});
av_reduce(&st->sample_aspect_ratio.num, &st->sample_aspect_ratio.den, tmp.num, tmp.den, 1000);