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
9c664280
Commit
9c664280
authored
Nov 10, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/wmaprodec: XMA1 actually have packet sequence numbers
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
5b349c8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wmaprodec.c
libavcodec/wmaprodec.c
+2
-2
No files found.
libavcodec/wmaprodec.c
View file @
9c664280
...
@@ -1612,7 +1612,7 @@ static int decode_packet(AVCodecContext *avctx, void *data,
...
@@ -1612,7 +1612,7 @@ static int decode_packet(AVCodecContext *avctx, void *data,
/** parse packet header */
/** parse packet header */
init_get_bits
(
gb
,
buf
,
s
->
buf_bit_size
);
init_get_bits
(
gb
,
buf
,
s
->
buf_bit_size
);
if
(
avctx
->
codec_id
==
AV_CODEC_ID_WMAPRO
)
{
if
(
avctx
->
codec_id
!=
AV_CODEC_ID_XMA2
)
{
packet_sequence_number
=
get_bits
(
gb
,
4
);
packet_sequence_number
=
get_bits
(
gb
,
4
);
skip_bits
(
gb
,
2
);
skip_bits
(
gb
,
2
);
}
else
{
}
else
{
...
@@ -1631,7 +1631,7 @@ static int decode_packet(AVCodecContext *avctx, void *data,
...
@@ -1631,7 +1631,7 @@ static int decode_packet(AVCodecContext *avctx, void *data,
num_bits_prev_frame
);
num_bits_prev_frame
);
/** check for packet loss */
/** check for packet loss */
if
(
avctx
->
codec_id
==
AV_CODEC_ID_WMAPRO
&&
!
s
->
packet_loss
&&
if
(
avctx
->
codec_id
!=
AV_CODEC_ID_XMA2
&&
!
s
->
packet_loss
&&
((
s
->
packet_sequence_number
+
1
)
&
0xF
)
!=
packet_sequence_number
)
{
((
s
->
packet_sequence_number
+
1
)
&
0xF
)
!=
packet_sequence_number
)
{
s
->
packet_loss
=
1
;
s
->
packet_loss
=
1
;
av_log
(
avctx
,
AV_LOG_ERROR
,
av_log
(
avctx
,
AV_LOG_ERROR
,
...
...
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