Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
1f70a5ad
Commit
1f70a5ad
authored
Aug 22, 2013
by
John Stebbins
Committed by
Anton Khirnov
Aug 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mov: use tkhd enabled flag to set the default track
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
e7b31844
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
isom.h
libavformat/isom.h
+5
-0
mov.c
libavformat/mov.c
+3
-7
No files found.
libavformat/isom.h
View file @
1f70a5ad
...
...
@@ -190,6 +190,11 @@ void ff_mp4_parse_es_descr(AVIOContext *pb, int *es_id);
#define MOV_FRAG_SAMPLE_FLAG_DEPENDS_NO 0x02000000
#define MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES 0x01000000
#define MOV_TKHD_FLAG_ENABLED 0x0001
#define MOV_TKHD_FLAG_IN_MOVIE 0x0002
#define MOV_TKHD_FLAG_IN_PREVIEW 0x0004
#define MOV_TKHD_FLAG_IN_POSTER 0x0008
int
ff_mov_read_esds
(
AVFormatContext
*
fc
,
AVIOContext
*
pb
,
MOVAtom
atom
);
enum
AVCodecID
ff_mov_get_lpcm_codec_id
(
int
bps
,
int
flags
);
...
...
libavformat/mov.c
View file @
1f70a5ad
...
...
@@ -2125,6 +2125,7 @@ static int mov_read_tkhd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
AVStream
*
st
;
MOVStreamContext
*
sc
;
int
version
;
int
flags
;
if
(
c
->
fc
->
nb_streams
<
1
)
return
0
;
...
...
@@ -2132,13 +2133,8 @@ static int mov_read_tkhd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
sc
=
st
->
priv_data
;
version
=
avio_r8
(
pb
);
avio_rb24
(
pb
);
/* flags */
/*
MOV_TRACK_ENABLED 0x0001
MOV_TRACK_IN_MOVIE 0x0002
MOV_TRACK_IN_PREVIEW 0x0004
MOV_TRACK_IN_POSTER 0x0008
*/
flags
=
avio_rb24
(
pb
);
st
->
disposition
|=
(
flags
&
MOV_TKHD_FLAG_ENABLED
)
?
AV_DISPOSITION_DEFAULT
:
0
;
if
(
version
==
1
)
{
avio_rb64
(
pb
);
...
...
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