mirror of https://git.ffmpeg.org/ffmpeg.git
lavd/fbdev_enc: fix not closed handles
Fixes CID 1206651 Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b3c0d010c3
commit
4930e529bf
|
@ -226,7 +226,8 @@ static int fbdev_get_device_list(AVFormatContext *s, AVDeviceInfoList *device_li
|
|||
device_list->default_device = device_list->nb_devices - 1;
|
||||
default_device = NULL;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
fd = -1;
|
||||
continue;
|
||||
|
||||
fail_device:
|
||||
|
|
Loading…
Reference in New Issue