diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-04-27 16:21:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-27 16:36:29 +0200 |
commit | 4930e529bfd3c679af4e6602b94560d33e8c3915 (patch) | |
tree | 8bd12c4e95d6a4e58a56a85cb23ddeee40d9a1f6 /libavdevice | |
parent | b3c0d010c3c77b58c25fe491435f20f1b92ab2c2 (diff) | |
download | ffmpeg-4930e529bfd3c679af4e6602b94560d33e8c3915.tar.gz |
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>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/fbdev_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/fbdev_enc.c b/libavdevice/fbdev_enc.c index 2042c9631f..96cbc137e8 100644 --- a/libavdevice/fbdev_enc.c +++ b/libavdevice/fbdev_enc.c @@ -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: |