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
ebba05b3
Commit
ebba05b3
authored
Oct 09, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prores:cosmetics
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fd0247f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
proresdec_gpl.c
libavcodec/proresdec_gpl.c
+3
-3
No files found.
libavcodec/proresdec_gpl.c
View file @
ebba05b3
...
...
@@ -171,7 +171,7 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
ctx
->
frame
.
top_field_first
=
ctx
->
frame_type
==
1
;
}
avctx
->
pix_fmt
=
(
(
buf
[
12
]
&
0xC0
)
==
0xC0
)
?
PIX_FMT_YUV444P10
:
PIX_FMT_YUV422P10
;
avctx
->
pix_fmt
=
(
buf
[
12
]
&
0xC0
)
==
0xC0
?
PIX_FMT_YUV444P10
:
PIX_FMT_YUV422P10
;
ptr
=
buf
+
20
;
flags
=
buf
[
19
];
...
...
@@ -298,7 +298,7 @@ static int decode_picture_header(AVCodecContext *avctx, const uint8_t *buf, cons
rice_order = codebook >> 5; \
exp_order = (codebook >> 2) & 7; \
\
q = 31
-av_log2(buf);
\
q = 31
- av_log2(buf);
\
\
if (q > switch_bits) {
/* exp golomb */
\
bits = exp_order - switch_bits + (q<<1); \
...
...
@@ -558,7 +558,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
int
buf_size
=
avpkt
->
size
;
int
frame_hdr_size
,
pic_size
;
if
(
buf_size
<
28
||
AV_RL32
(
buf
+
4
)
!=
AV_RL32
(
"icpf"
))
{
if
(
buf_size
<
28
||
AV_RL32
(
buf
+
4
)
!=
AV_RL32
(
"icpf"
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"invalid frame header
\n
"
);
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