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
e2644407
Commit
e2644407
authored
Aug 24, 2009
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskadec: factorize some code
Originally committed as revision 19693 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
deb1b2b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
matroskadec.c
libavformat/matroskadec.c
+1
-3
No files found.
libavformat/matroskadec.c
View file @
e2644407
...
@@ -1254,7 +1254,6 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
...
@@ -1254,7 +1254,6 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
ff_get_wav_header
(
&
b
,
st
->
codec
,
track
->
codec_priv
.
size
);
ff_get_wav_header
(
&
b
,
st
->
codec
,
track
->
codec_priv
.
size
);
codec_id
=
st
->
codec
->
codec_id
;
codec_id
=
st
->
codec
->
codec_id
;
extradata_offset
=
18
;
extradata_offset
=
18
;
track
->
codec_priv
.
size
-=
extradata_offset
;
}
else
if
(
!
strcmp
(
track
->
codec_id
,
"V_QUICKTIME"
)
}
else
if
(
!
strcmp
(
track
->
codec_id
,
"V_QUICKTIME"
)
&&
(
track
->
codec_priv
.
size
>=
86
)
&&
(
track
->
codec_priv
.
size
>=
86
)
&&
(
track
->
codec_priv
.
data
!=
NULL
))
{
&&
(
track
->
codec_priv
.
data
!=
NULL
))
{
...
@@ -1306,7 +1305,6 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
...
@@ -1306,7 +1305,6 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
}
else
if
(
codec_id
==
CODEC_ID_RV10
||
codec_id
==
CODEC_ID_RV20
||
}
else
if
(
codec_id
==
CODEC_ID_RV10
||
codec_id
==
CODEC_ID_RV20
||
codec_id
==
CODEC_ID_RV30
||
codec_id
==
CODEC_ID_RV40
)
{
codec_id
==
CODEC_ID_RV30
||
codec_id
==
CODEC_ID_RV40
)
{
extradata_offset
=
26
;
extradata_offset
=
26
;
track
->
codec_priv
.
size
-=
extradata_offset
;
}
else
if
(
codec_id
==
CODEC_ID_RA_144
)
{
}
else
if
(
codec_id
==
CODEC_ID_RA_144
)
{
track
->
audio
.
out_samplerate
=
8000
;
track
->
audio
.
out_samplerate
=
8000
;
track
->
audio
.
channels
=
1
;
track
->
audio
.
channels
=
1
;
...
@@ -1327,9 +1325,9 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
...
@@ -1327,9 +1325,9 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
}
else
{
}
else
{
st
->
codec
->
block_align
=
track
->
audio
.
sub_packet_size
;
st
->
codec
->
block_align
=
track
->
audio
.
sub_packet_size
;
extradata_offset
=
78
;
extradata_offset
=
78
;
track
->
codec_priv
.
size
-=
extradata_offset
;
}
}
}
}
track
->
codec_priv
.
size
-=
extradata_offset
;
if
(
codec_id
==
CODEC_ID_NONE
)
if
(
codec_id
==
CODEC_ID_NONE
)
av_log
(
matroska
->
ctx
,
AV_LOG_INFO
,
av_log
(
matroska
->
ctx
,
AV_LOG_INFO
,
...
...
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