On Wed, Aug 1, 2012 at 12:34 AM, Derek Buitenhuis
<derek.buitenh...@gmail.com> wrote:
> On 31/07/2012 12:17 PM, Samuel Pitoiset wrote:
>> +    if (memcmp(pkt->data, "\002", 1)) {
>> +        av_log(s, AV_LOG_ERROR, "No string method found in invoke 
>> packet\n");
>> +        return AVERROR_INVALIDDATA;
>> +    }
>
> Can you not just compare pkt->data[0] instead of using memcmp?

You are right, it's shorter and clearer.


-- 
Best regards,
Samuel Pitoiset.
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to