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
9fdfd21c
Commit
9fdfd21c
authored
Mar 02, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
factorize
Originally committed as revision 12293 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a048febd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
nutdec.c
libavformat/nutdec.c
+3
-6
No files found.
libavformat/nutdec.c
View file @
9fdfd21c
...
...
@@ -315,20 +315,14 @@ static int decode_stream_header(NUTContext *nut){
case
0
:
st
->
codec
->
codec_type
=
CODEC_TYPE_VIDEO
;
st
->
codec
->
codec_id
=
codec_get_id
(
codec_bmp_tags
,
tmp
);
if
(
st
->
codec
->
codec_id
==
CODEC_ID_NONE
)
av_log
(
s
,
AV_LOG_ERROR
,
"Unknown codec?!
\n
"
);
break
;
case
1
:
st
->
codec
->
codec_type
=
CODEC_TYPE_AUDIO
;
st
->
codec
->
codec_id
=
codec_get_id
(
codec_wav_tags
,
tmp
);
if
(
st
->
codec
->
codec_id
==
CODEC_ID_NONE
)
av_log
(
s
,
AV_LOG_ERROR
,
"Unknown codec?!
\n
"
);
break
;
case
2
:
st
->
codec
->
codec_type
=
CODEC_TYPE_SUBTITLE
;
// st->codec->codec_id = codec_get_id(codec_wav_tags, tmp); FIXME
if
(
st
->
codec
->
codec_id
==
CODEC_ID_NONE
)
av_log
(
s
,
AV_LOG_ERROR
,
"Unknown codec?!
\n
"
);
break
;
case
3
:
st
->
codec
->
codec_type
=
CODEC_TYPE_DATA
;
...
...
@@ -337,6 +331,9 @@ static int decode_stream_header(NUTContext *nut){
av_log
(
s
,
AV_LOG_ERROR
,
"unknown stream class (%d)
\n
"
,
class
);
return
-
1
;
}
if
(
class
<
3
&&
st
->
codec
->
codec_id
==
CODEC_ID_NONE
)
av_log
(
s
,
AV_LOG_ERROR
,
"Unknown codec?!
\n
"
);
GET_V
(
stc
->
time_base_id
,
tmp
<
nut
->
time_base_count
);
GET_V
(
stc
->
msb_pts_shift
,
tmp
<
16
);
stc
->
max_pts_distance
=
ff_get_v
(
bc
);
...
...
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