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
7268f0bd
Commit
7268f0bd
authored
Mar 16, 2009
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent after r18005.
Originally committed as revision 18007 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8127c420
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
rmdec.c
libavformat/rmdec.c
+15
-15
No files found.
libavformat/rmdec.c
View file @
7268f0bd
...
...
@@ -710,33 +710,33 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
int
old_flags
,
flags
;
for
(;;)
{
if
(
rm
->
audio_pkt_cnt
)
{
// If there are queued audio packet return them first
st
=
s
->
streams
[
rm
->
audio_stream_num
];
ff_rm_retrieve_cache
(
s
,
s
->
pb
,
st
,
st
->
priv_data
,
pkt
);
if
(
rm
->
audio_pkt_cnt
)
{
// If there are queued audio packet return them first
st
=
s
->
streams
[
rm
->
audio_stream_num
];
ff_rm_retrieve_cache
(
s
,
s
->
pb
,
st
,
st
->
priv_data
,
pkt
);
}
else
{
if
(
rm
->
old_format
)
{
RMStream
*
ast
;
RMStream
*
ast
;
st
=
s
->
streams
[
0
];
ast
=
st
->
priv_data
;
st
=
s
->
streams
[
0
];
ast
=
st
->
priv_data
;
timestamp
=
AV_NOPTS_VALUE
;
len
=
!
ast
->
audio_framesize
?
RAW_PACKET_SIZE
:
ast
->
coded_framesize
*
ast
->
sub_packet_h
/
2
;
flags
=
(
seq
++
==
1
)
?
2
:
0
;
}
else
{
len
=
sync
(
s
,
&
timestamp
,
&
flags
,
&
i
,
&
pos
);
st
=
s
->
streams
[
i
];
}
else
{
len
=
sync
(
s
,
&
timestamp
,
&
flags
,
&
i
,
&
pos
);
st
=
s
->
streams
[
i
];
}
if
(
len
<
0
||
url_feof
(
s
->
pb
))
return
AVERROR
(
EIO
);
old_flags
=
flags
;
res
=
ff_rm_parse_packet
(
s
,
s
->
pb
,
st
,
st
->
priv_data
,
len
,
pkt
,
&
seq
,
&
flags
,
&
timestamp
);
if
((
old_flags
&
2
)
&&
(
seq
&
0x7F
)
==
1
)
av_add_index_entry
(
st
,
pos
,
timestamp
,
0
,
0
,
AVINDEX_KEYFRAME
);
old_flags
=
flags
;
res
=
ff_rm_parse_packet
(
s
,
s
->
pb
,
st
,
st
->
priv_data
,
len
,
pkt
,
&
seq
,
&
flags
,
&
timestamp
);
if
((
old_flags
&
2
)
&&
(
seq
&
0x7F
)
==
1
)
av_add_index_entry
(
st
,
pos
,
timestamp
,
0
,
0
,
AVINDEX_KEYFRAME
);
if
(
res
)
continue
;
}
...
...
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