diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-25 01:09:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-25 01:09:59 +0200 |
commit | 4fb14f84926ebcf88222e2251f4b8141d6bec465 (patch) | |
tree | 51ebca86acc3fae8e607848243007237bcbcb41d /libavcodec | |
parent | 29ffeef5e73b8f41ff3a3f2242d356759c66f91f (diff) | |
download | ffmpeg-streaming-4fb14f84926ebcf88222e2251f4b8141d6bec465.zip ffmpeg-streaming-4fb14f84926ebcf88222e2251f4b8141d6bec465.tar.gz |
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')
-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 21b4f91..7a80248 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); |