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
20be72c8
Commit
20be72c8
authored
Jan 15, 2007
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save/restore number of streams
Originally committed as revision 7535 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1aa72a70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ogg2.c
libavformat/ogg2.c
+4
-2
ogg2.h
libavformat/ogg2.h
+1
-0
No files found.
libavformat/ogg2.c
View file @
20be72c8
...
@@ -90,6 +90,7 @@ ogg_save (AVFormatContext * s)
...
@@ -90,6 +90,7 @@ ogg_save (AVFormatContext * s)
ost
->
pos
=
url_ftell
(
&
s
->
pb
);;
ost
->
pos
=
url_ftell
(
&
s
->
pb
);;
ost
->
curidx
=
ogg
->
curidx
;
ost
->
curidx
=
ogg
->
curidx
;
ost
->
next
=
ogg
->
state
;
ost
->
next
=
ogg
->
state
;
ost
->
nstreams
=
ogg
->
nstreams
;
memcpy
(
ost
->
streams
,
ogg
->
streams
,
ogg
->
nstreams
*
sizeof
(
*
ogg
->
streams
));
memcpy
(
ost
->
streams
,
ogg
->
streams
,
ogg
->
nstreams
*
sizeof
(
*
ogg
->
streams
));
for
(
i
=
0
;
i
<
ogg
->
nstreams
;
i
++
){
for
(
i
=
0
;
i
<
ogg
->
nstreams
;
i
++
){
...
@@ -123,8 +124,9 @@ ogg_restore (AVFormatContext * s, int discard)
...
@@ -123,8 +124,9 @@ ogg_restore (AVFormatContext * s, int discard)
url_fseek
(
bc
,
ost
->
pos
,
SEEK_SET
);
url_fseek
(
bc
,
ost
->
pos
,
SEEK_SET
);
ogg
->
curidx
=
ost
->
curidx
;
ogg
->
curidx
=
ost
->
curidx
;
memcpy
(
ogg
->
streams
,
ost
->
streams
,
ogg
->
nstreams
=
ost
->
nstreams
;
ogg
->
nstreams
*
sizeof
(
*
ogg
->
streams
));
memcpy
(
ogg
->
streams
,
ost
->
streams
,
ost
->
nstreams
*
sizeof
(
*
ogg
->
streams
));
}
}
av_free
(
ost
);
av_free
(
ost
);
...
...
libavformat/ogg2.h
View file @
20be72c8
...
@@ -57,6 +57,7 @@ typedef struct ogg_state {
...
@@ -57,6 +57,7 @@ typedef struct ogg_state {
uint64_t
pos
;
uint64_t
pos
;
int
curidx
;
int
curidx
;
struct
ogg_state
*
next
;
struct
ogg_state
*
next
;
int
nstreams
;
ogg_stream_t
streams
[
1
];
ogg_stream_t
streams
[
1
];
}
ogg_state_t
;
}
ogg_state_t
;
...
...
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