diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-20 18:52:38 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-03-20 18:52:38 +0100 |
commit | 3aa6208db9666c0f1351855262d8c839002d9de1 (patch) | |
tree | e65953de8f56fdb4f063173435599d052926effc /libavformat/allformats.c | |
parent | 9461e4bc694b8d95d4224226b9781f8166d969b1 (diff) |
lavf: Constify AVInputFormat pointer.
Diffstat (limited to 'libavformat/allformats.c')
-rw-r--r-- | libavformat/allformats.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/allformats.c b/libavformat/allformats.c index 06844986f3..d316a0529a 100644 --- a/libavformat/allformats.c +++ b/libavformat/allformats.c @@ -210,6 +210,7 @@ extern AVInputFormat ff_ivr_demuxer; extern AVInputFormat ff_jacosub_demuxer; extern AVOutputFormat ff_jacosub_muxer; extern AVInputFormat ff_jv_demuxer; +extern AVInputFormat ff_kux_demuxer; extern AVOutputFormat ff_latm_muxer; extern AVInputFormat ff_lmlm4_demuxer; extern AVInputFormat ff_loas_demuxer; @@ -583,7 +584,11 @@ AVInputFormat *av_iformat_next(const AVInputFormat *f) ff_thread_once(&av_format_next_init, av_format_init_next); if (f) +#if FF_API_AVIOFORMAT return f->next; +#else + return (AVInputFormat *) f->next; +#endif else { void *opaque = NULL; return (AVInputFormat *)av_demuxer_iterate(&opaque); @@ -595,7 +600,11 @@ AVOutputFormat *av_oformat_next(const AVOutputFormat *f) ff_thread_once(&av_format_next_init, av_format_init_next); if (f) +#if FF_API_AVIOFORMAT return f->next; +#else + return (AVOutputFormat *) f->next; +#endif else { void *opaque = NULL; return (AVOutputFormat *)av_muxer_iterate(&opaque); |