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
c2e88054
Commit
c2e88054
authored
Aug 03, 2006
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove duplicate code
Originally committed as revision 5906 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3bb63b82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
mxf.c
libavformat/mxf.c
+5
-8
No files found.
libavformat/mxf.c
View file @
c2e88054
...
@@ -812,25 +812,18 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
...
@@ -812,25 +812,18 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
#endif
#endif
/* TODO: drop PictureEssenceCoding and SoundEssenceCompression, only check EssenceContainer */
/* TODO: drop PictureEssenceCoding and SoundEssenceCompression, only check EssenceContainer */
codec_ul
=
mxf_get_codec_ul
(
mxf_codec_uls
,
&
descriptor
->
essence_codec_ul
);
codec_ul
=
mxf_get_codec_ul
(
mxf_codec_uls
,
&
descriptor
->
essence_codec_ul
);
st
->
codec
->
codec_id
=
codec_ul
->
id
;
if
(
st
->
codec
->
codec_type
==
CODEC_TYPE_VIDEO
)
{
if
(
st
->
codec
->
codec_type
==
CODEC_TYPE_VIDEO
)
{
st
->
codec
->
codec_id
=
codec_ul
->
id
;
container_ul
=
mxf_get_codec_ul
(
mxf_picture_essence_container_uls
,
&
descriptor
->
essence_container_ul
);
container_ul
=
mxf_get_codec_ul
(
mxf_picture_essence_container_uls
,
&
descriptor
->
essence_container_ul
);
if
(
st
->
codec
->
codec_id
==
CODEC_ID_NONE
)
if
(
st
->
codec
->
codec_id
==
CODEC_ID_NONE
)
st
->
codec
->
codec_id
=
container_ul
->
id
;
st
->
codec
->
codec_id
=
container_ul
->
id
;
if
(
container_ul
->
wrapping
==
Clip
)
{
dprintf
(
"stream %d: clip wrapped picture essence
\n
"
,
st
->
index
);
st
->
need_parsing
=
1
;
}
st
->
codec
->
width
=
descriptor
->
width
;
st
->
codec
->
width
=
descriptor
->
width
;
st
->
codec
->
height
=
descriptor
->
height
;
st
->
codec
->
height
=
descriptor
->
height
;
st
->
codec
->
bits_per_sample
=
descriptor
->
bits_per_sample
;
/* Uncompressed */
st
->
codec
->
bits_per_sample
=
descriptor
->
bits_per_sample
;
/* Uncompressed */
}
else
if
(
st
->
codec
->
codec_type
==
CODEC_TYPE_AUDIO
)
{
}
else
if
(
st
->
codec
->
codec_type
==
CODEC_TYPE_AUDIO
)
{
st
->
codec
->
codec_id
=
codec_ul
->
id
;
container_ul
=
mxf_get_codec_ul
(
mxf_sound_essence_container_uls
,
&
descriptor
->
essence_container_ul
);
container_ul
=
mxf_get_codec_ul
(
mxf_sound_essence_container_uls
,
&
descriptor
->
essence_container_ul
);
if
(
st
->
codec
->
codec_id
==
CODEC_ID_NONE
)
if
(
st
->
codec
->
codec_id
==
CODEC_ID_NONE
)
st
->
codec
->
codec_id
=
container_ul
->
id
;
st
->
codec
->
codec_id
=
container_ul
->
id
;
if
(
container_ul
->
wrapping
==
Clip
)
st
->
need_parsing
=
1
;
st
->
codec
->
channels
=
descriptor
->
channels
;
st
->
codec
->
channels
=
descriptor
->
channels
;
st
->
codec
->
bits_per_sample
=
descriptor
->
bits_per_sample
;
st
->
codec
->
bits_per_sample
=
descriptor
->
bits_per_sample
;
st
->
codec
->
sample_rate
=
descriptor
->
sample_rate
.
num
/
descriptor
->
sample_rate
.
den
;
st
->
codec
->
sample_rate
=
descriptor
->
sample_rate
.
num
/
descriptor
->
sample_rate
.
den
;
...
@@ -847,6 +840,10 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
...
@@ -847,6 +840,10 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
st
->
codec
->
codec_id
=
CODEC_ID_PCM_S32BE
;
st
->
codec
->
codec_id
=
CODEC_ID_PCM_S32BE
;
}
}
}
}
if
(
container_ul
->
wrapping
==
Clip
)
{
dprintf
(
"stream %d: clip wrapped essence
\n
"
,
st
->
index
);
st
->
need_parsing
=
1
;
}
}
}
return
0
;
return
0
;
}
}
...
...
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