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
18aea7bd
Commit
18aea7bd
authored
Nov 27, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/opus: set skip_samples
Also update fate test. Fixes #5258.
parent
b9aff7a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
opus.c
libavcodec/opus.c
+2
-1
opus.mak
tests/fate/opus.mak
+1
-0
No files found.
libavcodec/opus.c
View file @
18aea7bd
...
...
@@ -31,6 +31,7 @@
#include "opus_celt.h"
#include "opustab.h"
#include "internal.h"
#include "vorbis.h"
static
const
uint16_t
opus_frame_duration
[
32
]
=
{
...
...
@@ -325,7 +326,7 @@ av_cold int ff_opus_parse_extradata(AVCodecContext *avctx,
return
AVERROR_PATCHWELCOME
;
}
avctx
->
delay
=
AV_RL16
(
extradata
+
10
);
avctx
->
delay
=
avctx
->
internal
->
skip_samples
=
AV_RL16
(
extradata
+
10
);
channels
=
avctx
->
extradata
?
extradata
[
9
]
:
(
avctx
->
channels
==
1
)
?
1
:
2
;
if
(
!
channels
)
{
...
...
tests/fate/opus.mak
View file @
18aea7bd
...
...
@@ -36,6 +36,7 @@ fate-opus-testvector09: CMP_TARGET = 0
fate-opus-testvector10: CMP_TARGET = 38
fate-opus-testvector11: CMP_TARGET = 0
fate-opus-testvector12: CMP_TARGET = 160
fate-opus-tron.6ch.tinypkts: CMP_SHIFT = 1440
fate-opus-tron.6ch.tinypkts: CMP_TARGET = 0
$(FATE_OPUS_CELT): CMP = oneoff
...
...
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