Fixes issue1716
Originally committed as revision 21559 to svn://svn.ffmpeg.org/ffmpeg/trunk
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",
NULL,
ff_wma_end,
wma_decode_superframe,
+ .flush=flush,
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"),
};
NULL,
ff_wma_end,
wma_decode_superframe,
+ .flush=flush,
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"),
};