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
5442083b
Commit
5442083b
authored
Dec 01, 2012
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support Sorenson Spark in f4v files streamed by Flash Media Server.
parent
873049e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
isom.c
libavformat/isom.c
+1
-1
mov.c
libavformat/mov.c
+5
-1
No files found.
libavformat/isom.c
View file @
5442083b
...
@@ -227,7 +227,7 @@ const AVCodecTag ff_codec_movvideo_tags[] = {
...
@@ -227,7 +227,7 @@ const AVCodecTag ff_codec_movvideo_tags[] = {
{
AV_CODEC_ID_DIRAC
,
MKTAG
(
'd'
,
'r'
,
'a'
,
'c'
)
},
{
AV_CODEC_ID_DIRAC
,
MKTAG
(
'd'
,
'r'
,
'a'
,
'c'
)
},
{
AV_CODEC_ID_DNXHD
,
MKTAG
(
'A'
,
'V'
,
'd'
,
'n'
)
},
/* AVID DNxHD */
{
AV_CODEC_ID_DNXHD
,
MKTAG
(
'A'
,
'V'
,
'd'
,
'n'
)
},
/* AVID DNxHD */
// { AV_CODEC_ID_FLV1, MKTAG('H', '2', '6', '3') }, /* Flash Media Server */
// { AV_CODEC_ID_FLV1, MKTAG('H', '2', '6', '3') }, /* Flash Media Server
, forced in demuxer
*/
{
AV_CODEC_ID_MSMPEG4V3
,
MKTAG
(
'3'
,
'I'
,
'V'
,
'D'
)
},
/* 3ivx DivX Doctor */
{
AV_CODEC_ID_MSMPEG4V3
,
MKTAG
(
'3'
,
'I'
,
'V'
,
'D'
)
},
/* 3ivx DivX Doctor */
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'A'
,
'V'
,
'1'
,
'x'
)
},
/* AVID 1:1x */
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'A'
,
'V'
,
'1'
,
'x'
)
},
/* AVID 1:1x */
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'A'
,
'V'
,
'u'
,
'p'
)
},
{
AV_CODEC_ID_RAWVIDEO
,
MKTAG
(
'A'
,
'V'
,
'u'
,
'p'
)
},
...
...
libavformat/mov.c
View file @
5442083b
...
@@ -1259,7 +1259,6 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
...
@@ -1259,7 +1259,6 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
int
color_greyscale
;
int
color_greyscale
;
int
color_table_id
;
int
color_table_id
;
st
->
codec
->
codec_id
=
id
;
avio_rb16
(
pb
);
/* version */
avio_rb16
(
pb
);
/* version */
avio_rb16
(
pb
);
/* revision level */
avio_rb16
(
pb
);
/* revision level */
avio_rb32
(
pb
);
/* vendor */
avio_rb32
(
pb
);
/* vendor */
...
@@ -1283,6 +1282,11 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
...
@@ -1283,6 +1282,11 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
/* codec_tag YV12 triggers an UV swap in rawdec.c */
/* codec_tag YV12 triggers an UV swap in rawdec.c */
if
(
!
memcmp
(
st
->
codec
->
codec_name
,
"Planar Y'CbCr 8-bit 4:2:0"
,
25
))
if
(
!
memcmp
(
st
->
codec
->
codec_name
,
"Planar Y'CbCr 8-bit 4:2:0"
,
25
))
st
->
codec
->
codec_tag
=
MKTAG
(
'I'
,
'4'
,
'2'
,
'0'
);
st
->
codec
->
codec_tag
=
MKTAG
(
'I'
,
'4'
,
'2'
,
'0'
);
/* Flash Media Server streams files with Sorenson Spark and tag H263 */
if
(
!
memcmp
(
st
->
codec
->
codec_name
,
"Sorenson H263"
,
13
)
&&
format
==
MKTAG
(
'H'
,
'2'
,
'6'
,
'3'
))
id
=
AV_CODEC_ID_FLV1
;
st
->
codec
->
codec_id
=
id
;
st
->
codec
->
bits_per_coded_sample
=
avio_rb16
(
pb
);
/* depth */
st
->
codec
->
bits_per_coded_sample
=
avio_rb16
(
pb
);
/* depth */
color_table_id
=
avio_rb16
(
pb
);
/* colortable id */
color_table_id
=
avio_rb16
(
pb
);
/* colortable id */
...
...
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