[FFmpeg-devel] some minor cleanup (and one leak fix) for dshow

Michael Niedermayer michaelni at gmx.at
Mon Aug 20 20:59:01 CEST 2012


On Mon, Aug 20, 2012 at 12:46:27PM -0600, Roger Pack wrote:
> >> -    unsigned int buffer_fullness = (ctx->curbufsize*100)/s->max_picture_buffer;
> >> +    unsigned int buffer_fullness = ((float)ctx->curbufsize*100)/s->max_picture_buffer;
> >
> > this and the 2nd hunk should use int64_t to avoid rounding issues
> 
> Ok that seems to work [see attached].
> 
> Also another patch attached to guard curbufsize usage.

both patches applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120820/d54efdd6/attachment.asc>


More information about the ffmpeg-devel mailing list