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
e1b2f6ec
Commit
e1b2f6ec
authored
Oct 09, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prores: only call get_buffer once per frame
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ebba05b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
proresdec_gpl.c
libavcodec/proresdec_gpl.c
+6
-6
No files found.
libavcodec/proresdec_gpl.c
View file @
e1b2f6ec
...
@@ -575,6 +575,12 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
...
@@ -575,6 +575,12 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
buf
+=
frame_hdr_size
;
buf
+=
frame_hdr_size
;
buf_size
-=
frame_hdr_size
;
buf_size
-=
frame_hdr_size
;
if
(
frame
->
data
[
0
])
avctx
->
release_buffer
(
avctx
,
frame
);
if
(
avctx
->
get_buffer
(
avctx
,
frame
)
<
0
)
return
-
1
;
decode_picture:
decode_picture:
pic_size
=
decode_picture_header
(
avctx
,
buf
,
buf_size
);
pic_size
=
decode_picture_header
(
avctx
,
buf
,
buf_size
);
if
(
pic_size
<
0
)
{
if
(
pic_size
<
0
)
{
...
@@ -582,12 +588,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
...
@@ -582,12 +588,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
return
-
1
;
return
-
1
;
}
}
if
(
frame
->
data
[
0
])
avctx
->
release_buffer
(
avctx
,
frame
);
if
(
avctx
->
get_buffer
(
avctx
,
frame
)
<
0
)
return
-
1
;
if
(
decode_picture
(
avctx
))
{
if
(
decode_picture
(
avctx
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"error decoding picture
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"error decoding picture
\n
"
);
return
-
1
;
return
-
1
;
...
...
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