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

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Oct 1 19:28:31 EEST 2017


2017-09-29 5:38 GMT+02:00 Jeyapal, Karthick <kjeyapal at akamai.com>:
>>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.

Pushed assuming you have tested this.

Thank you, Carl Eugen


More information about the ffmpeg-devel mailing list