[FFmpeg-devel] [PATCH] Remove disabled buffer size check

Panagiotis Issaris takis.issaris
Thu Nov 29 15:25:43 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

avcodec_encode_audio() contains dead code checking the given buffer size:

...
if(buf_size < FF_MIN_BUFFER_SIZE && 0){
   av_log(avctx, AV_LOG_ERROR, "buffer smaller than minimum size\n");
   return -1;
}
...

The attached patch removes the check as it has never been enabled
(its first introduction in SVN at 2005-01-12 already shows the "&& 0").

With friendly regards,
Takis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTsvn9kOxLuzz4CkRAgfNAJ9X4g1VakqLBcXMVuddbHGUxKVbZACfaTgt
3hWb21tK4fP3LTFlCdRbXcs=
=yLw7
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pi-20071129T150848-ffmpeg-remove_disabled_bufsize_check.diff
Type: text/x-patch
Size: 669 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071129/f7877ad9/attachment.bin>



More information about the ffmpeg-devel mailing list