Commit b4dac278 authored by aurel's avatar aurel

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8523 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dde4788a
...@@ -294,6 +294,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, ...@@ -294,6 +294,7 @@ static int shorten_decode_frame(AVCodecContext *avctx,
if(buf_size < s->max_framesize){ if(buf_size < s->max_framesize){
//dprintf(avctx, "wanna more data ... %d\n", buf_size); //dprintf(avctx, "wanna more data ... %d\n", buf_size);
*data_size = 0;
return input_buf_size; return input_buf_size;
} }
} }
...@@ -471,6 +472,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, ...@@ -471,6 +472,7 @@ static int shorten_decode_frame(AVCodecContext *avctx,
s->blocksize = get_uint(s, av_log2(s->blocksize)); s->blocksize = get_uint(s, av_log2(s->blocksize));
break; break;
case FN_QUIT: case FN_QUIT:
*data_size = 0;
return buf_size; return buf_size;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment