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
99f42c27
Commit
99f42c27
authored
Feb 24, 2011
by
Anton Khirnov
Committed by
Ronald S. Bultje
Feb 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avienc: replace &tag[0] with tag.
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
0abdb293
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
avienc.c
libavformat/avienc.c
+7
-7
No files found.
libavformat/avienc.c
View file @
99f42c27
...
@@ -318,7 +318,7 @@ static int avi_write_header(AVFormatContext *s)
...
@@ -318,7 +318,7 @@ static int avi_write_header(AVFormatContext *s)
avio_w8
(
pb
,
0
);
/* bIndexSubType (0 == frame index) */
avio_w8
(
pb
,
0
);
/* bIndexSubType (0 == frame index) */
avio_w8
(
pb
,
0
);
/* bIndexType (0 == AVI_INDEX_OF_INDEXES) */
avio_w8
(
pb
,
0
);
/* bIndexType (0 == AVI_INDEX_OF_INDEXES) */
avio_wl32
(
pb
,
0
);
/* nEntriesInUse (will fill out later on) */
avio_wl32
(
pb
,
0
);
/* nEntriesInUse (will fill out later on) */
ffio_wfourcc
(
pb
,
avi_stream2fourcc
(
&
tag
[
0
]
,
i
,
stream
->
codec_type
));
ffio_wfourcc
(
pb
,
avi_stream2fourcc
(
tag
,
i
,
stream
->
codec_type
));
/* dwChunkId */
/* dwChunkId */
avio_wl64
(
pb
,
0
);
/* dwReserved[3]
avio_wl64
(
pb
,
0
);
/* dwReserved[3]
avio_wl32(pb, 0); Must be 0. */
avio_wl32(pb, 0); Must be 0. */
...
@@ -415,12 +415,12 @@ static int avi_write_ix(AVFormatContext *s)
...
@@ -415,12 +415,12 @@ static int avi_write_ix(AVFormatContext *s)
AVIStream
*
avist
=
s
->
streams
[
i
]
->
priv_data
;
AVIStream
*
avist
=
s
->
streams
[
i
]
->
priv_data
;
int64_t
ix
,
pos
;
int64_t
ix
,
pos
;
avi_stream2fourcc
(
&
tag
[
0
]
,
i
,
s
->
streams
[
i
]
->
codec
->
codec_type
);
avi_stream2fourcc
(
tag
,
i
,
s
->
streams
[
i
]
->
codec
->
codec_type
);
ix_tag
[
3
]
=
'0'
+
i
;
ix_tag
[
3
]
=
'0'
+
i
;
/* Writing AVI OpenDML leaf index chunk */
/* Writing AVI OpenDML leaf index chunk */
ix
=
url_ftell
(
pb
);
ix
=
url_ftell
(
pb
);
ffio_wfourcc
(
pb
,
&
ix_tag
[
0
]
);
/* ix?? */
ffio_wfourcc
(
pb
,
ix_tag
);
/* ix?? */
avio_wl32
(
pb
,
avist
->
indexes
.
entry
*
8
+
24
);
avio_wl32
(
pb
,
avist
->
indexes
.
entry
*
8
+
24
);
/* chunk size */
/* chunk size */
avio_wl16
(
pb
,
2
);
/* wLongsPerEntry */
avio_wl16
(
pb
,
2
);
/* wLongsPerEntry */
...
@@ -428,7 +428,7 @@ static int avi_write_ix(AVFormatContext *s)
...
@@ -428,7 +428,7 @@ static int avi_write_ix(AVFormatContext *s)
avio_w8
(
pb
,
1
);
/* bIndexType (1 == AVI_INDEX_OF_CHUNKS) */
avio_w8
(
pb
,
1
);
/* bIndexType (1 == AVI_INDEX_OF_CHUNKS) */
avio_wl32
(
pb
,
avist
->
indexes
.
entry
);
avio_wl32
(
pb
,
avist
->
indexes
.
entry
);
/* nEntriesInUse */
/* nEntriesInUse */
ffio_wfourcc
(
pb
,
&
tag
[
0
]);
/* dwChunkId */
ffio_wfourcc
(
pb
,
tag
);
/* dwChunkId */
avio_wl64
(
pb
,
avi
->
movi_list
);
/* qwBaseOffset */
avio_wl64
(
pb
,
avi
->
movi_list
);
/* qwBaseOffset */
avio_wl32
(
pb
,
0
);
/* dwReserved_3 (must be 0) */
avio_wl32
(
pb
,
0
);
/* dwReserved_3 (must be 0) */
...
@@ -491,9 +491,9 @@ static int avi_write_idx1(AVFormatContext *s)
...
@@ -491,9 +491,9 @@ static int avi_write_idx1(AVFormatContext *s)
}
}
if
(
!
empty
)
{
if
(
!
empty
)
{
avist
=
s
->
streams
[
stream_id
]
->
priv_data
;
avist
=
s
->
streams
[
stream_id
]
->
priv_data
;
avi_stream2fourcc
(
&
tag
[
0
]
,
stream_id
,
avi_stream2fourcc
(
tag
,
stream_id
,
s
->
streams
[
stream_id
]
->
codec
->
codec_type
);
s
->
streams
[
stream_id
]
->
codec
->
codec_type
);
ffio_wfourcc
(
pb
,
&
tag
[
0
]
);
ffio_wfourcc
(
pb
,
tag
);
avio_wl32
(
pb
,
ie
->
flags
);
avio_wl32
(
pb
,
ie
->
flags
);
avio_wl32
(
pb
,
ie
->
pos
);
avio_wl32
(
pb
,
ie
->
pos
);
avio_wl32
(
pb
,
ie
->
len
);
avio_wl32
(
pb
,
ie
->
len
);
...
@@ -545,7 +545,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -545,7 +545,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
avi
->
movi_list
=
avi_start_new_riff
(
s
,
pb
,
"AVIX"
,
"movi"
);
avi
->
movi_list
=
avi_start_new_riff
(
s
,
pb
,
"AVIX"
,
"movi"
);
}
}
avi_stream2fourcc
(
&
tag
[
0
]
,
stream_index
,
enc
->
codec_type
);
avi_stream2fourcc
(
tag
,
stream_index
,
enc
->
codec_type
);
if
(
pkt
->
flags
&
AV_PKT_FLAG_KEY
)
if
(
pkt
->
flags
&
AV_PKT_FLAG_KEY
)
flags
=
0x10
;
flags
=
0x10
;
if
(
enc
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
{
if
(
enc
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
{
...
...
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