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
387bef95
Commit
387bef95
authored
Nov 12, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: factorise setting buffer type in avcodec_default_get_buffer().
parent
e57c4706
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
utils.c
libavcodec/utils.c
+1
-3
No files found.
libavcodec/utils.c
View file @
387bef95
...
...
@@ -320,8 +320,6 @@ static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame)
return
ret
;
}
frame
->
type
=
FF_BUFFER_TYPE_INTERNAL
;
avci
->
audio_data
=
frame
->
data
[
0
];
if
(
avctx
->
debug
&
FF_DEBUG_BUFFERS
)
av_log
(
avctx
,
AV_LOG_DEBUG
,
"default_get_buffer called on frame %p, "
...
...
@@ -434,7 +432,6 @@ static int video_get_buffer(AVCodecContext *s, AVFrame *pic)
buf
->
height
=
s
->
height
;
buf
->
pix_fmt
=
s
->
pix_fmt
;
}
pic
->
type
=
FF_BUFFER_TYPE_INTERNAL
;
for
(
i
=
0
;
i
<
AV_NUM_DATA_POINTERS
;
i
++
)
{
pic
->
base
[
i
]
=
buf
->
base
[
i
];
...
...
@@ -453,6 +450,7 @@ static int video_get_buffer(AVCodecContext *s, AVFrame *pic)
int
avcodec_default_get_buffer
(
AVCodecContext
*
avctx
,
AVFrame
*
frame
)
{
frame
->
type
=
FF_BUFFER_TYPE_INTERNAL
;
switch
(
avctx
->
codec_type
)
{
case
AVMEDIA_TYPE_VIDEO
:
return
video_get_buffer
(
avctx
,
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