Quoting James Almer (2020-10-09 22:18:09) > Signed-off-by: James Almer <jamr...@gmail.com> > --- > libavdevice/alldevices.c | 76 ++++++++++++++++++++++++++++++++++++++++ > libavdevice/avdevice.c | 46 ------------------------ > 2 files changed, 76 insertions(+), 46 deletions(-) > > diff --git a/libavdevice/alldevices.c b/libavdevice/alldevices.c > index a6f68dd3bb..4137f60109 100644 > --- a/libavdevice/alldevices.c > +++ b/libavdevice/alldevices.c > @@ -67,3 +67,79 @@ void avdevice_register_all(void) > { > avpriv_register_devices(outdev_list, indev_list); > } > + > +static void *next_input(AVInputFormat *prev, AVClassCategory c2) > +{ > + const AVClass *pc; > + const AVClassCategory c1 = AV_CLASS_CATEGORY_DEVICE_INPUT; > + AVClassCategory category = AV_CLASS_CATEGORY_NA; > + const AVInputFormat *fmt = NULL; > + int i = 0; > + > + if (prev) { > + while (fmt = indev_list[i]) { > + i++; > + if (av_match_name(prev->name, fmt->name))
Why not compare the AVInputFormat pointers directly? -- Anton Khirnov _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".