[FFmpeg-devel] [PATCH 3/4] avdevice/decklink_dec: Added Closed caption decode from VANC

Jeyapal, Karthick kjeyapal at akamai.com
Fri Sep 29 06:38:42 EEST 2017


>On 9/29/17, 7:36 AM, "James Almer" <jamrial at gmail.com> wrote:
>>  
>> +static inline uint16_t parity (uint16_t x)
>> +{
>> +    uint16_t i;
>> +    for (i = 4 * sizeof (x); i > 0; i /= 2)
>> +        x ^= x >> i;
>> +    return x & 1;
>> +}
>
>Can't you use av_parity() instead?

Yes, I can. Thanks for pointing it out. But that patch has been submitted already. Hence, I have attached a fresh patch with this suggested change.

Regards,
Karthick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avdevice-decklink_dec-Used-av_parity-instead-of-dupl.patch
Type: application/octet-stream
Size: 1269 bytes
Desc: 0001-avdevice-decklink_dec-Used-av_parity-instead-of-dupl.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170929/25579d70/attachment.obj>


More information about the ffmpeg-devel mailing list