Two tests check the opposite pointer before using it. If only one of these
is set to a valid pointer, one of these functions will crash, the other will
ignore the pointer.
Signed-off-by: James Almer <jamrial@gmail.com>
if (i < size) {
f = muxer_list[i];
- } else if (indev_list) {
+ } else if (outdev_list) {
f = outdev_list[i - size];
}
if (i < size) {
f = demuxer_list[i];
- } else if (outdev_list) {
+ } else if (indev_list) {
f = indev_list[i - size];
}