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
3dc7a9f6
Commit
3dc7a9f6
authored
Jan 05, 2023
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/ac3dec: fail when the sample rate is unset
parent
94aa70d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ac3dec.c
libavcodec/ac3dec.c
+5
-0
No files found.
libavcodec/ac3dec.c
View file @
3dc7a9f6
...
...
@@ -1716,6 +1716,11 @@ skip:
avctx
->
bit_rate
=
s
->
bit_rate
+
s
->
prev_bit_rate
;
}
if
(
!
avctx
->
sample_rate
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Could not determine the sample rate
\n
"
);
return
AVERROR_INVALIDDATA
;
}
for
(
ch
=
0
;
ch
<
EAC3_MAX_CHANNELS
;
ch
++
)
extended_channel_map
[
ch
]
=
ch
;
...
...
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