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
519ebb5e
Commit
519ebb5e
authored
Mar 17, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rmdec: flush audio packet on seeking
Fixes Ticket1605 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ef3c8883
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
rmdec.c
libavformat/rmdec.c
+13
-0
No files found.
libavformat/rmdec.c
View file @
519ebb5e
...
@@ -1004,6 +1004,18 @@ static int64_t rm_read_dts(AVFormatContext *s, int stream_index,
...
@@ -1004,6 +1004,18 @@ static int64_t rm_read_dts(AVFormatContext *s, int stream_index,
return
dts
;
return
dts
;
}
}
static
int
rm_read_seek
(
AVFormatContext
*
s
,
int
stream_index
,
int64_t
pts
,
int
flags
)
{
RMDemuxContext
*
rm
=
s
->
priv_data
;
if
(
ff_seek_frame_binary
(
s
,
stream_index
,
pts
,
flags
)
<
0
)
return
-
1
;
rm
->
audio_pkt_cnt
=
0
;
return
0
;
}
AVInputFormat
ff_rm_demuxer
=
{
AVInputFormat
ff_rm_demuxer
=
{
.
name
=
"rm"
,
.
name
=
"rm"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"RealMedia"
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"RealMedia"
),
...
@@ -1013,6 +1025,7 @@ AVInputFormat ff_rm_demuxer = {
...
@@ -1013,6 +1025,7 @@ AVInputFormat ff_rm_demuxer = {
.
read_packet
=
rm_read_packet
,
.
read_packet
=
rm_read_packet
,
.
read_close
=
rm_read_close
,
.
read_close
=
rm_read_close
,
.
read_timestamp
=
rm_read_dts
,
.
read_timestamp
=
rm_read_dts
,
.
read_seek
=
rm_read_seek
,
};
};
AVInputFormat
ff_rdt_demuxer
=
{
AVInputFormat
ff_rdt_demuxer
=
{
...
...
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