mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
avcodec/wmaprodec: XMA1 actually have packet sequence numbers
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
5b349c8d7c
commit
9c66428016
@ -1612,7 +1612,7 @@ static int decode_packet(AVCodecContext *avctx, void *data,
|
||||
|
||||
/** parse packet header */
|
||||
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);
|
||||
skip_bits(gb, 2);
|
||||
} else {
|
||||
@ -1631,7 +1631,7 @@ static int decode_packet(AVCodecContext *avctx, void *data,
|
||||
num_bits_prev_frame);
|
||||
|
||||
/** 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_loss = 1;
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
|
Loading…
Reference in New Issue
Block a user