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
fca712df
Commit
fca712df
authored
Nov 03, 2011
by
Jordi Ortiz
Committed by
Michael Niedermayer
Nov 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dirac: Specific struct initializers in AVCodec initialization
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
aae7a5e3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
diracdec.c
libavcodec/diracdec.c
+13
-14
No files found.
libavcodec/diracdec.c
View file @
fca712df
...
@@ -830,8 +830,7 @@ static int dirac_unpack_prediction_parameters(DiracContext *s)
...
@@ -830,8 +830,7 @@ static int dirac_unpack_prediction_parameters(DiracContext *s)
/* Luma and Chroma are equal. 11.2.3 */
/* Luma and Chroma are equal. 11.2.3 */
idx
=
svq3_get_ue_golomb
(
gb
);
/* [DIRAC_STD] index */
idx
=
svq3_get_ue_golomb
(
gb
);
/* [DIRAC_STD] index */
if
(
idx
>
4
)
if
(
idx
>
4
)
{
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Block prediction index too high
\n
"
);
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Block prediction index too high
\n
"
);
return
-
1
;
return
-
1
;
}
}
...
@@ -1893,15 +1892,15 @@ static int dirac_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
...
@@ -1893,15 +1892,15 @@ static int dirac_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
}
}
AVCodec
ff_dirac_decoder
=
{
AVCodec
ff_dirac_decoder
=
{
"dirac"
,
.
name
=
"dirac"
,
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
CODEC_ID_DIRAC
,
.
id
=
CODEC_ID_DIRAC
,
sizeof
(
DiracContext
),
.
priv_data_size
=
sizeof
(
DiracContext
),
dirac_decode_init
,
.
init
=
dirac_decode_init
,
NULL
,
.
encode
=
NULL
,
dirac_decode_end
,
.
close
=
dirac_decode_end
,
dirac_decode_frame
,
.
decode
=
dirac_decode_frame
,
CODEC_CAP_DELAY
,
.
capabilities
=
CODEC_CAP_DELAY
,
.
flush
=
dirac_decode_flush
,
.
flush
=
dirac_decode_flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"BBC Dirac VC-2"
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"BBC Dirac VC-2"
),
};
};
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