On 10/14/2011 01:52 AM, Kostya Shishkov wrote:
> On Thu, Oct 13, 2011 at 05:45:54PM -0400, Justin Ruggles wrote:
>> ---
>> libavcodec/shorten.c | 3 +--
>> 1 files changed, 1 insertions(+), 2 deletions(-)
>>
>> diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c
>> index 8031758..7fdd86c 100644
>> --- a/libavcodec/shorten.c
>> +++ b/libavcodec/shorten.c
>> @@ -442,9 +442,8 @@ static int shorten_decode_frame(AVCodecContext *avctx,
>> {
>> if ((ret = read_header(s)) < 0)
>> return ret;
>> - *data_size = 0;
>> }
>> - else
>> +
>> {
>> int cmd;
>> int len;
>> --
>
> maybe check if there's data left after the header and then decode but in
> pinciple OK
I've decided to drop this patch. There is too much risk that there
won't be enough data left after the header to decode a full frame.
-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel