[FFmpeg-devel] [PATCH] swscale: factorize plane copying code out of 2 functions

Ramiro Polla ramiro.polla
Thu Sep 16 16:19:22 CEST 2010


On Thu, Sep 16, 2010 at 11:08 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Wed, Sep 15, 2010 at 10:14:30PM -0300, Ramiro Polla wrote:
>> ?swscale.c | ? ?2 +-
>> ?1 file changed, 1 insertion(+), 1 deletion(-)
>> 711561766d150bb05875d28bc61a1f3419d18cd3 ?copyPlane_width_stride.diff
>> Index: swscale.c
>> ===================================================================
>> --- swscale.c (revision 32258)
>> +++ swscale.c (working copy)
>> @@ -1313,7 +1313,7 @@
>> ? ? ? ? ? ? ? ? ? ? ? ?uint8_t *dst, int dstStride)
>> ?{
>> ? ? ?dst += dstStride * srcSliceY;
>> - ? ?if (dstStride == srcStride && srcStride > 0) {
>> + ? ?if (width == dstStride == srcStride && srcStride > 0) {
>
> that does not work

heh, late at night I sometimes forget C syntax doesn't work like
normal math. but is this the correct idea?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copyPlane_width_stride_2.diff
Type: application/octet-stream
Size: 458 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100916/46229ad1/attachment.obj>



More information about the ffmpeg-devel mailing list