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
818d1f1a
Commit
818d1f1a
authored
Jul 28, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3: Clean up the error paths
parent
6258d362
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
ac3dec.c
libavcodec/ac3dec.c
+6
-3
No files found.
libavcodec/ac3dec.c
View file @
818d1f1a
...
...
@@ -1305,7 +1305,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data,
/* skip frame if CRC is ok. otherwise use error concealment. */
/* TODO: add support for substreams and dependent frames */
if
(
s
->
frame_type
==
EAC3_FRAME_TYPE_DEPENDENT
||
s
->
substreamid
)
{
av_log
(
avctx
,
AV_LOG_
ERROR
,
"unsupported frame type : "
av_log
(
avctx
,
AV_LOG_
WARNING
,
"unsupported frame type : "
"skipping frame
\n
"
);
*
got_frame_ptr
=
0
;
return
buf_size
;
...
...
@@ -1313,9 +1313,12 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data,
av_log
(
avctx
,
AV_LOG_ERROR
,
"invalid frame type
\n
"
);
}
break
;
default
:
av_log
(
avctx
,
AV_LOG_ERROR
,
"invalid header
\n
"
);
case
AAC_AC3_PARSE_ERROR_CRC
:
case
AAC_AC3_PARSE_ERROR_CHANNEL_CFG
:
break
;
default:
// Normal AVERROR do not try to recover.
*
got_frame_ptr
=
0
;
return
err
;
}
}
else
{
/* check that reported frame size fits in input buffer */
...
...
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