[FFmpeg-devel] [PATCH] check read_packet before calling it
Benoit Fouet
benoit.fouet
Wed Sep 26 13:33:56 CEST 2007
Michael Niedermayer wrote:
> Hi
>
> On Tue, Sep 25, 2007 at 08:51:33PM +0200, Benoit Fouet wrote:
>
>> Hi,
>>
>> attached is a patch to $subj
>>
> [...]
>
>> @@ -332,7 +333,7 @@
>>
>> int get_buffer(ByteIOContext *s, unsigned char *buf, int size)
>> {
>> - int len, size1;
>> + int len=0, size1;
>>
>> size1 = size;
>> while (size > 0) {
>> @@ -341,6 +342,7 @@
>> len = size;
>> if (len == 0) {
>> if(size > s->buffer_size && !s->update_checksum){
>> + if(s->read_packet)
>>
>
> the =0 is useless
>
>
true, fixed
> except that iam ok with the patch
>
>
Applied
(and also the indentation in a second commit)
--
Ben
Purple Labs S.A.
www.purplelabs.com
More information about the ffmpeg-devel
mailing list