Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
3050e53f
Commit
3050e53f
authored
Apr 27, 2014
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/fbdev_enc: remove redundant assignments
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki2@gmail.com
>
parent
8b30702c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
fbdev_enc.c
libavdevice/fbdev_enc.c
+2
-5
No files found.
libavdevice/fbdev_enc.c
View file @
3050e53f
...
...
@@ -190,7 +190,7 @@ static int fbdev_get_device_list(AVFormatContext *s, AVDeviceInfoList *device_li
struct
fb_fix_screeninfo
fixinfo
;
char
device_file
[
12
];
AVDeviceInfo
*
device
=
NULL
;
int
i
,
fd
=
-
1
,
ret
=
0
;
int
i
,
fd
,
ret
=
0
;
const
char
*
default_device
=
ff_fbdev_default_device
();
if
(
!
device_list
)
...
...
@@ -227,7 +227,6 @@ static int fbdev_get_device_list(AVFormatContext *s, AVDeviceInfoList *device_li
default_device
=
NULL
;
}
close
(
fd
);
fd
=
-
1
;
continue
;
fail_device:
...
...
@@ -236,10 +235,8 @@ static int fbdev_get_device_list(AVFormatContext *s, AVDeviceInfoList *device_li
av_free
(
device
->
device_description
);
av_freep
(
&
device
);
}
if
(
fd
>=
0
)
{
if
(
fd
>=
0
)
close
(
fd
);
fd
=
-
1
;
}
if
(
ret
<
0
)
return
ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment