Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
ab79fa44
Commit
ab79fa44
authored
Mar 30, 2009
by
Ramiro Polla
Browse files
mlpdec: Simplify check for substream_parity_present.
Originally committed as revision 18240 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
01aaf092
Changes
1
Hide whitespace changes
Inline
Side-by-side
libavcodec/mlpdec.c
View file @
ab79fa44
...
...
@@ -1032,10 +1032,12 @@ static int read_access_unit(AVCodecContext *avctx, void* data, int *data_size,
if
(
substr
==
m
->
max_decoded_substream
)
av_log
(
m
->
avctx
,
AV_LOG_INFO
,
"End of stream indicated.
\n
"
);
}
if
(
substream_data_len
[
substr
]
*
8
-
get_bits_count
(
&
gb
)
>=
16
&&
substream_parity_present
[
substr
])
{
if
(
substream_parity_present
[
substr
])
{
uint8_t
parity
,
checksum
;
if
(
substream_data_len
[
substr
]
*
8
-
get_bits_count
(
&
gb
)
!=
16
)
goto
substream_length_mismatch
;
parity
=
ff_mlp_calculate_parity
(
buf
,
substream_data_len
[
substr
]
-
2
);
checksum
=
ff_mlp_checksum8
(
buf
,
substream_data_len
[
substr
]
-
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