[FFmpeg-cvslog] wmalossless: Ensure that last frame is not written again if nothing was decoded in current packet .

Jakub Stachowski git at videolan.org
Sat Apr 21 19:55:22 CEST 2012


ffmpeg | branch: master | Jakub Stachowski <qbast at go2.pl> | Sat Apr 21 12:37:25 2012 +0200| [93bf1aac6ab9874769d347bc9fdd14cb18f063f6] | committer: Michael Niedermayer

wmalossless: Ensure that last frame is not written 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>

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

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

diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 021ce49..de5dca3 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -1171,6 +1171,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