Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
cd38fbf4
Commit
cd38fbf4
authored
Oct 13, 2021
by
Limin Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/atsc_a53: use AVERROR_INVALIDDATA
Signed-off-by:
Limin Wang
<
lance.lmwang@gmail.com
>
parent
0feb7c86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
atsc_a53.c
libavcodec/atsc_a53.c
+3
-3
No files found.
libavcodec/atsc_a53.c
View file @
cd38fbf4
...
...
@@ -73,7 +73,7 @@ int ff_parse_a53_cc(AVBufferRef **pbuf, const uint8_t *data, int size)
int
ret
,
cc_count
;
if
(
size
<
3
)
return
AVERROR
(
EINVAL
)
;
return
AVERROR
_INVALIDDATA
;
ret
=
init_get_bits8
(
&
gb
,
data
,
size
);
if
(
ret
<
0
)
...
...
@@ -95,12 +95,12 @@ int ff_parse_a53_cc(AVBufferRef **pbuf, const uint8_t *data, int size)
/* 3 bytes per CC plus one byte marker_bits at the end */
if
(
cc_count
*
3
>=
(
get_bits_left
(
&
gb
)
>>
3
))
return
AVERROR
(
EINVAL
)
;
return
AVERROR
_INVALIDDATA
;
new_size
=
(
old_size
+
cc_count
*
3
);
if
(
new_size
>
INT_MAX
)
return
AVERROR
(
EINVAL
)
;
return
AVERROR
_INVALIDDATA
;
/* Allow merging of the cc data from two fields. */
ret
=
av_buffer_realloc
(
pbuf
,
new_size
);
...
...
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