Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
7a70e01b
Commit
7a70e01b
authored
13 years ago
by
Anton Khirnov
Browse files
Options
Downloads
Patches
Plain Diff
v4l2: don't leak video standard string on error.
parent
06b5facd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavdevice/v4l2.c
+1
-1
1 addition, 1 deletion
libavdevice/v4l2.c
with
1 addition
and
1 deletion
libavdevice/v4l2.c
+
1
−
1
View file @
7a70e01b
...
@@ -511,7 +511,6 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap)
...
@@ -511,7 +511,6 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap)
return
AVERROR
(
EIO
);
return
AVERROR
(
EIO
);
}
}
}
}
av_freep
(
&
s
->
standard
);
if
(
ap
->
time_base
.
num
&&
ap
->
time_base
.
den
)
{
if
(
ap
->
time_base
.
num
&&
ap
->
time_base
.
den
)
{
av_log
(
s1
,
AV_LOG_DEBUG
,
"Setting time per frame to %d/%d
\n
"
,
av_log
(
s1
,
AV_LOG_DEBUG
,
"Setting time per frame to %d/%d
\n
"
,
...
@@ -681,6 +680,7 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap)
...
@@ -681,6 +680,7 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap)
out:
out:
av_freep
(
&
s
->
video_size
);
av_freep
(
&
s
->
video_size
);
av_freep
(
&
s
->
pixel_format
);
av_freep
(
&
s
->
pixel_format
);
av_freep
(
&
s
->
standard
);
return
res
;
return
res
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment