projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f92f452
)
WMAL: do not output last frame again if nothing was decoded in current packet
author
Jakub Stachowski
<qbast@go2.pl>
Sat, 28 Apr 2012 18:24:19 +0000
(11:24 -0700)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 1 May 2012 12:34:03 +0000
(14:34 +0200)
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>
libavcodec/wmalosslessdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/wmalosslessdec.c
b/libavcodec/wmalosslessdec.c
index
e86645e
..
913271e
100644
(file)
--- 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;