Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-25 03:09:59 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-10-25 03:09:59 +0400
commit4fb14f84926ebcf88222e2251f4b8141d6bec465 (patch)
tree51ebca86acc3fae8e607848243007237bcbcb41d /libavcodec/wmalosslessdec.c
parent29ffeef5e73b8f41ff3a3f2242d356759c66f91f (diff)
avcodec/wmalosslessdec: fix data flushing at the end
Fixes ffplay -autoexit Fixes Ticket3000 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wmalosslessdec.c')
-rw-r--r--libavcodec/wmalosslessdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 21b4f91bd2..7a80248ffc 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -1182,6 +1182,8 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr,
if (s->packet_done || s->packet_loss) {
s->packet_done = 0;
+ if (!buf_size)
+ return 0;
/* sanity check for the buffer length */
if (buf_size < avctx->block_align) {
av_log(avctx, AV_LOG_ERROR, "buf size %d invalid\n", buf_size);