[FFmpeg-cvslog] r21559 - trunk/libavcodec/wmadec.c
michael
subversion
Sat Jan 30 22:55:18 CET 2010
Author: michael
Date: Sat Jan 30 22:55:18 2010
New Revision: 21559
Log:
Flush the bitreservour.
Fixes issue1716
Modified:
trunk/libavcodec/wmadec.c
Modified: trunk/libavcodec/wmadec.c
==============================================================================
--- trunk/libavcodec/wmadec.c Sat Jan 30 22:54:06 2010 (r21558)
+++ trunk/libavcodec/wmadec.c Sat Jan 30 22:55:18 2010 (r21559)
@@ -920,6 +920,14 @@ static int wma_decode_superframe(AVCodec
return -1;
}
+static av_cold void flush(AVCodecContext *avctx)
+{
+ WMACodecContext *s = avctx->priv_data;
+
+ s->last_bitoffset=
+ s->last_superframe_len= 0;
+}
+
AVCodec wmav1_decoder =
{
"wmav1",
@@ -930,6 +938,7 @@ AVCodec wmav1_decoder =
NULL,
ff_wma_end,
wma_decode_superframe,
+ .flush=flush,
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"),
};
@@ -943,5 +952,6 @@ AVCodec wmav2_decoder =
NULL,
ff_wma_end,
wma_decode_superframe,
+ .flush=flush,
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"),
};
More information about the ffmpeg-cvslog
mailing list