Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
2bc0de38
Commit
2bc0de38
authored
Sep 21, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: initialize AVFrame.extended_data in avcodec_get_frame_defaults()
parent
c084a975
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
utils.c
libavcodec/utils.c
+4
-0
No files found.
libavcodec/utils.c
View file @
2bc0de38
...
@@ -635,12 +635,16 @@ enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum
...
@@ -635,12 +635,16 @@ enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum
void
avcodec_get_frame_defaults
(
AVFrame
*
frame
)
void
avcodec_get_frame_defaults
(
AVFrame
*
frame
)
{
{
if
(
frame
->
extended_data
!=
frame
->
data
)
av_freep
(
&
frame
->
extended_data
);
memset
(
frame
,
0
,
sizeof
(
AVFrame
));
memset
(
frame
,
0
,
sizeof
(
AVFrame
));
frame
->
pts
=
AV_NOPTS_VALUE
;
frame
->
pts
=
AV_NOPTS_VALUE
;
frame
->
key_frame
=
1
;
frame
->
key_frame
=
1
;
frame
->
sample_aspect_ratio
=
(
AVRational
)
{
0
,
1
};
frame
->
sample_aspect_ratio
=
(
AVRational
)
{
0
,
1
};
frame
->
format
=
-
1
;
/* unknown */
frame
->
format
=
-
1
;
/* unknown */
frame
->
extended_data
=
frame
->
data
;
}
}
AVFrame
*
avcodec_alloc_frame
(
void
)
AVFrame
*
avcodec_alloc_frame
(
void
)
...
...
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