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
5c08c7b2
Commit
5c08c7b2
authored
May 21, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a flag to disable side data merging.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
94eadee7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
avformat.h
libavformat/avformat.h
+1
-1
options.c
libavformat/options.c
+1
-0
utils.c
libavformat/utils.c
+2
-1
No files found.
libavformat/avformat.h
View file @
5c08c7b2
...
...
@@ -731,7 +731,7 @@ typedef struct AVFormatContext {
#define AVFMT_FLAG_MP4A_LATM 0x0080 ///< Enable RTP MP4A-LATM payload
#define AVFMT_FLAG_SORT_DTS 0x10000 ///< try to interleave outputted packets by dts (using this flag can slow demuxing down)
#define AVFMT_FLAG_PRIV_OPT 0x20000 ///< Enable use of private options by delaying codec open (this could be made default once all code is converted)
#define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000 ///< Dont merge side data but keep it seperate.
int
loop_input
;
/**
...
...
libavformat/options.c
View file @
5c08c7b2
...
...
@@ -51,6 +51,7 @@ static const AVOption options[]={
{
"igndts"
,
"ignore dts"
,
0
,
FF_OPT_TYPE_CONST
,
{.
dbl
=
AVFMT_FLAG_IGNDTS
},
INT_MIN
,
INT_MAX
,
D
,
"fflags"
},
{
"rtphint"
,
"add rtp hinting"
,
0
,
FF_OPT_TYPE_CONST
,
{.
dbl
=
AVFMT_FLAG_RTP_HINT
},
INT_MIN
,
INT_MAX
,
E
,
"fflags"
},
{
"sortdts"
,
"try to interleave outputted packets by dts"
,
0
,
FF_OPT_TYPE_CONST
,
{.
dbl
=
AVFMT_FLAG_SORT_DTS
},
INT_MIN
,
INT_MAX
,
D
,
"fflags"
},
{
"keepside"
,
"dont merge side data"
,
0
,
FF_OPT_TYPE_CONST
,
{.
dbl
=
AVFMT_FLAG_KEEP_SIDE_DATA
},
INT_MIN
,
INT_MAX
,
D
,
"fflags"
},
{
"latm"
,
"enable RTP MP4A-LATM payload"
,
0
,
FF_OPT_TYPE_CONST
,
{.
dbl
=
AVFMT_FLAG_MP4A_LATM
},
INT_MIN
,
INT_MAX
,
E
,
"fflags"
},
{
"analyzeduration"
,
"how many microseconds are analyzed to estimate duration"
,
OFFSET
(
max_analyze_duration
),
FF_OPT_TYPE_INT
,
{.
dbl
=
5
*
AV_TIME_BASE
},
0
,
INT_MAX
,
D
},
{
"cryptokey"
,
"decryption key"
,
OFFSET
(
key
),
FF_OPT_TYPE_BINARY
,
{.
dbl
=
0
},
0
,
0
,
D
},
...
...
libavformat/utils.c
View file @
5c08c7b2
...
...
@@ -673,7 +673,8 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt)
continue
;
}
av_packet_merge_side_data
(
pkt
);
if
(
!
(
s
->
flags
&
AVFMT_FLAG_KEEP_SIDE_DATA
))
av_packet_merge_side_data
(
pkt
);
st
=
s
->
streams
[
pkt
->
stream_index
];
switch
(
st
->
codec
->
codec_type
){
...
...
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