Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e918aa68
Commit
e918aa68
authored
Jul 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: factor frame initialization code
parent
71c11236
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+7
-2
No files found.
modules/codec/avcodec/video.c
View file @
e918aa68
...
...
@@ -996,8 +996,6 @@ static picture_t *lavc_dr_GetFrame(struct AVCodecContext *ctx,
}
/* Allocate buffer references */
for
(
unsigned
i
=
0
;
i
<
AV_NUM_DATA_POINTERS
;
i
++
)
frame
->
buf
[
i
]
=
NULL
;
for
(
int
i
=
0
;
i
<
pic
->
i_planes
;
i
++
)
{
lavc_pic_ref_t
*
ref
=
malloc
(
sizeof
(
*
ref
));
...
...
@@ -1041,6 +1039,13 @@ static int lavc_GetFrame(struct AVCodecContext *ctx, AVFrame *frame, int flags)
decoder_sys_t
*
sys
=
dec
->
p_sys
;
picture_t
*
pic
;
for
(
unsigned
i
=
0
;
i
<
AV_NUM_DATA_POINTERS
;
i
++
)
{
frame
->
data
[
i
]
=
NULL
;
frame
->
linesize
[
i
]
=
0
;
frame
->
buf
[
i
]
=
NULL
;
}
if
(
sys
->
p_va
!=
NULL
)
return
lavc_va_GetFrame
(
ctx
,
frame
);
...
...
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