diff options
author | Marton Balint <cus@passwd.hu> | 2022-07-10 20:32:55 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2022-07-17 22:12:31 +0200 |
commit | 83feded4926272904e4abcecaa573e61d457a0db (patch) | |
tree | be547be3ea188fe9340c7ef2ffbaf0bae267129a /libavcodec/dcadct.c | |
parent | 2720715dab70f40025a1d209e746b6c0f188a9d4 (diff) | |
download | ffmpeg-83feded4926272904e4abcecaa573e61d457a0db.tar.gz |
avdevice/avdevice: fix return value of avdevice_list_devices()
According to API docs avdevice_list_devices(), avdevice_list_input_sources()
and avdevice_list_input_sinks() should return the number of autodetected
devices on success. This is redundant with AVDeviceInfoList->nb_devices so it
was not noticed earlier that none of the underlying device list functions work
like that.
Let's fix it in generic code to make it in line with the API docs.
Fixes ticket #9820.
Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit 64f04df37942c1b1fc11df0f99ffba7834c33f34)
Diffstat (limited to 'libavcodec/dcadct.c')
0 files changed, 0 insertions, 0 deletions