[FFmpeg-cvslog] avcodec/wmaprodec: XMA1 actually have packet sequence numbers

Paul B Mahol git at videolan.org
Tue Nov 10 21:26:43 CET 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov 10 21:24:30 2015 +0100| [9c66428016c3d7219adec9a392d82f7ae89f9686] | committer: Paul B Mahol

avcodec/wmaprodec: XMA1 actually have packet sequence numbers

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c66428016c3d7219adec9a392d82f7ae89f9686
---

 libavcodec/wmaprodec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 3b759f6..6a784b6 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -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,



More information about the ffmpeg-cvslog mailing list