Mercurial > libavcodec.hg
changeset 4734:d2db36185222 libavcodec
properly set *data_size when returning >= 0 values in shorten_decode_frame()
Original thread:
Date: Sat, 24 Mar 2007 04:04:53 +0100
Subject: [Ffmpeg-devel] Shorten file playback broken in SVN trunk
author | aurel |
---|---|
date | Mon, 26 Mar 2007 00:00:43 +0000 |
parents | 507d08212e36 |
children | 8903c1d6db18 |
files | shorten.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/shorten.c Sun Mar 25 23:37:38 2007 +0000 +++ b/shorten.c Mon Mar 26 00:00:43 2007 +0000 @@ -294,6 +294,7 @@ if(buf_size < s->max_framesize){ //dprintf(avctx, "wanna more data ... %d\n", buf_size); + *data_size = 0; return input_buf_size; } } @@ -471,6 +472,7 @@ s->blocksize = get_uint(s, av_log2(s->blocksize)); break; case FN_QUIT: + *data_size = 0; return buf_size; break; default: