Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0b1bd1b2
Commit
0b1bd1b2
authored
Jul 13, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd: Drop unneeded av_init_packet()s
The input packet is already unref'd by the calling function.
parent
390b95b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
v4l2.c
libavdevice/v4l2.c
+0
-1
x11grab.c
libavdevice/x11grab.c
+0
-1
No files found.
libavdevice/v4l2.c
View file @
0b1bd1b2
...
...
@@ -861,7 +861,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
#endif
int
res
;
av_init_packet
(
pkt
);
if
((
res
=
mmap_read_frame
(
s1
,
pkt
))
<
0
)
{
return
res
;
}
...
...
libavdevice/x11grab.c
View file @
0b1bd1b2
...
...
@@ -511,7 +511,6 @@ static int x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
nanosleep
(
&
ts
,
NULL
);
}
av_init_packet
(
pkt
);
pkt
->
data
=
image
->
data
;
pkt
->
size
=
s
->
frame_size
;
pkt
->
pts
=
curtime
;
...
...
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