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
0b8b7db0
Commit
0b8b7db0
authored
Jan 16, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegaudio_parser: do not ignore information from the first parsed frame
Update some demuxing and seeking fate tests.
parent
6776a8f1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
19 deletions
+15
-19
mpegaudio_parser.c
libavcodec/mpegaudio_parser.c
+1
-1
pva-demux
tests/ref/fate/pva-demux
+3
-3
wtv-demux
tests/ref/fate/wtv-demux
+6
-6
mp2_mp2
tests/ref/seek/mp2_mp2
+5
-9
No files found.
libavcodec/mpegaudio_parser.c
View file @
0b8b7db0
...
...
@@ -75,7 +75,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
s
->
header_count
++
;
s
->
frame_size
=
ret
-
4
;
if
(
s
->
header_count
>
1
)
{
if
(
s
->
header_count
>
0
)
{
avctx
->
sample_rate
=
sr
;
avctx
->
channels
=
channels
;
s1
->
duration
=
frame_size
;
...
...
tests/ref/fate/pva-demux
View file @
0b8b7db0
#tb 0: 1/90000
0, 0, 0, 2160, 384, 0x071abcc8
0,
0,
0, 2160, 384, 0x31c9aee0
0,
2160, 216
0, 2160, 384, 0xa50eaa94
0,
4320, 432
0, 2160, 384, 0x9e86ba0e
0,
2160, 216
0, 2160, 384, 0x31c9aee0
0,
4320, 432
0, 2160, 384, 0xa50eaa94
0,
6480, 648
0, 2160, 384, 0x9e86ba0e
0, 8640, 8640, 2160, 384, 0x2321b800
0, 10800, 10800, 2160, 384, 0x2347afa8
0, 12960, 12960, 2160, 384, 0x0831b8d3
...
...
tests/ref/fate/wtv-demux
View file @
0b8b7db0
#tb 0: 1/10000000
#tb 1: 1/10000000
1, -2, -2,
18
0000, 576, 0x9b6e1638
1,
179998, 17
9998, 240000, 576, 0x0ca91183
1, 4
19998, 41
9998, 240000, 576, 0xec6a180f
1,
659998, 65
9998, 240000, 576, 0x478a2b9b
1,
899998, 89
9998, 240000, 576, 0x00fa15b3
1, 11
39998, 113
9998, 240000, 576, 0xfb551816
1, -2, -2,
24
0000, 576, 0x9b6e1638
1,
239998, 23
9998, 240000, 576, 0x0ca91183
1, 4
79998, 47
9998, 240000, 576, 0xec6a180f
1,
719998, 71
9998, 240000, 576, 0x478a2b9b
1,
959998, 95
9998, 240000, 576, 0x00fa15b3
1, 11
99998, 119
9998, 240000, 576, 0xfb551816
1, 1439998, 1439998, 240000, 576, 0x422e12bd
1, 1679998, 1679998, 240000, 576, 0xa7581b29
1, 1919998, 1919998, 240000, 576, 0xd4b31a74
...
...
tests/ref/seek/mp2_mp2
View file @
0b8b7db0
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.0
26122 pts: 0.026122 pos: 417 size: 418
ret: 0 st: 0 flags:1 dts: 0.0
00000 pts: 0.000000 pos: 0 size: 417
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.880816 pts: 1.880816 pos: 30093 size: 418
ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 0 flags:1 dts: 0.809796 pts: 0.809796 pos: 12956 size: 418
ret: 0 st: 0 flags:1 ts:-0.317499
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
ret:-1 st: 0 flags:1 ts:-0.317499
ret: 0 st:-1 flags:0 ts: 2.576668
ret: 0 st: 0 flags:1 dts: 2.586122 pts: 2.586122 pos: 41377 size: 418
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.462857 pts: 1.462857 pos: 23405 size: 418
ret: 0 st: 0 flags:0 ts: 0.365002
ret: 0 st: 0 flags:1 dts: 0.365714 pts: 0.365714 pos: 5851 size: 418
ret: 0 st: 0 flags:1 ts:-0.740831
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
ret:-1 st: 0 flags:1 ts:-0.740831
ret: 0 st:-1 flags:0 ts: 2.153336
ret: 0 st: 0 flags:1 dts: 2.168163 pts: 2.168163 pos: 34690 size: 418
ret: 0 st:-1 flags:1 ts: 1.047503
...
...
@@ -41,13 +39,11 @@ ret: 0 st: 0 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 1.985306 pts: 1.985306 pos: 31764 size: 418
ret: 0 st:-1 flags:0 ts: 0.883340
ret: 0 st: 0 flags:1 dts: 0.888163 pts: 0.888163 pos: 14210 size: 418
ret: 0 st:-1 flags:1 ts:-0.222493
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
ret:-1 st:-1 flags:1 ts:-0.222493
ret: 0 st: 0 flags:0 ts: 2.671674
ret: 0 st: 0 flags:1 dts: 2.690612 pts: 2.690612 pos: 43049 size: 418
ret: 0 st: 0 flags:1 ts: 1.565841
ret: 0 st: 0 flags:1 dts: 1.541224 pts: 1.541224 pos: 24659 size: 418
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.470204 pts: 0.470204 pos: 7523 size: 418
ret: 0 st:-1 flags:1 ts:-0.645825
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 0 size: 417
ret:-1 st:-1 flags:1 ts:-0.645825
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