diff options
author | Jakub Stachowski <qbast@go2.pl> | 2012-04-28 11:24:19 -0700 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2012-05-01 14:34:03 +0200 |
commit | 035a394eac868928dded505fb5ca494350ad2e92 (patch) | |
tree | c5f2ed8fc1686afb152b6d3fdb09f74e30c7e7f0 /libavcodec | |
parent | f92f4523782be96cd80b4d94d2642d12dd42cf00 (diff) | |
download | ffmpeg-035a394eac868928dded505fb5ca494350ad2e92.tar.gz |
WMAL: do not output last frame again if nothing was decoded in current packet
Reviewed-by: Mashiat Sarker Shakkhar <mashiat.sarker@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/wmalosslessdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index e86645e225..913271e216 100644 --- a/libavcodec/wmalosslessdec.c +++ b/libavcodec/wmalosslessdec.c @@ -1166,6 +1166,8 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr, int buf_size = avpkt->size; int num_bits_prev_frame, packet_sequence_number, spliced_packet; + s->frame.nb_samples = 0; + if (s->packet_done || s->packet_loss) { s->packet_done = 0; |