[FFmpeg-cvslog] WMAL: do not output last frame again if nothing was decoded in current packet

Jakub Stachowski git at videolan.org
Tue May 1 22:19:19 CEST 2012


ffmpeg | branch: master | Jakub Stachowski <qbast at go2.pl> | Sat Apr 28 11:24:19 2012 -0700| [035a394eac868928dded505fb5ca494350ad2e92] | committer: Kostya Shishkov

WMAL: do not output last frame again if nothing was decoded in current packet

Reviewed-by: Mashiat Sarker Shakkhar <mashiat.sarker at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov at gmail.com>

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

 libavcodec/wmalosslessdec.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index e86645e..913271e 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;
 



More information about the ffmpeg-cvslog mailing list