Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
fba418e6
Commit
fba418e6
authored
May 02, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not assume AV_SAMPLE_FMT_S16 as tta sample format.
parent
3b4621ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tta.c
libavcodec/tta.c
+1
-1
No files found.
libavcodec/tta.c
View file @
fba418e6
...
@@ -325,7 +325,7 @@ static int tta_decode_frame(AVCodecContext *avctx,
...
@@ -325,7 +325,7 @@ static int tta_decode_frame(AVCodecContext *avctx,
int
cur_chan
=
0
,
framelen
=
s
->
frame_length
;
int
cur_chan
=
0
,
framelen
=
s
->
frame_length
;
int32_t
*
p
;
int32_t
*
p
;
if
(
*
data_size
<
(
framelen
*
s
->
channels
*
2
))
{
if
(
*
data_size
<
(
framelen
*
s
->
channels
*
av_get_bits_per_sample_fmt
(
avctx
->
sample_fmt
)
/
8
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Output buffer size is too small.
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Output buffer size is too small.
\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