[FFmpeg-devel] [PATCH] check read_packet before calling it

Michael Niedermayer michaelni
Wed Sep 26 13:25:32 CEST 2007


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

except that iam ok with the patch

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070926/1d9f2ae1/attachment.pgp>



More information about the ffmpeg-devel mailing list