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
d360dd90
Commit
d360dd90
authored
Mar 28, 2012
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmall: fix seeking.
parent
0a82f527
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+13
-0
No files found.
libavcodec/wmalosslessdec.c
View file @
d360dd90
...
...
@@ -903,6 +903,7 @@ static int decode_subframe(WmallDecodeCtx *s)
}
else
if
(
!
s
->
cdlms
[
0
][
0
].
order
)
{
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Waiting for seekable tile
\n
"
);
s
->
frame
.
nb_samples
=
0
;
return
-
1
;
}
...
...
@@ -1265,6 +1266,17 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr,
return
(
s
->
packet_loss
)
?
AVERROR_INVALIDDATA
:
get_bits_count
(
gb
)
>>
3
;
}
static
void
flush
(
AVCodecContext
*
avctx
)
{
WmallDecodeCtx
*
s
=
avctx
->
priv_data
;
s
->
packet_loss
=
1
;
s
->
packet_done
=
0
;
s
->
num_saved_bits
=
0
;
s
->
frame_offset
=
0
;
s
->
next_packet_start
=
0
;
s
->
cdlms
[
0
][
0
].
order
=
0
;
s
->
frame
.
nb_samples
=
0
;
}
AVCodec
ff_wmalossless_decoder
=
{
.
name
=
"wmalossless"
,
...
...
@@ -1273,6 +1285,7 @@ AVCodec ff_wmalossless_decoder = {
.
priv_data_size
=
sizeof
(
WmallDecodeCtx
),
.
init
=
decode_init
,
.
decode
=
decode_packet
,
.
flush
=
flush
,
.
capabilities
=
CODEC_CAP_SUBFRAMES
|
CODEC_CAP_DR1
|
CODEC_CAP_DELAY
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"Windows Media Audio Lossless"
),
};
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