[FFmpeg-devel] [PATCH v3 2/2] rtp: rfc4175: add handler for YCbCr-4:2:2

Hendrik Leppkes h.leppkes at gmail.com
Wed Mar 1 00:50:36 EET 2017


On Tue, Feb 28, 2017 at 11:40 PM, Rostislav Pehlivanov
<atomnuker at gmail.com> wrote:
>> +static int rfc4175_parse_format(AVStream *stream, PayloadContext *data)
>> +{
>> +    enum AVPixelFormat pixfmt = AV_PIX_FMT_NONE;
>> +    int bits_per_sample = 0;
>> +    int tag = 0;
>> +
>> +    if (!strcmp(data->sampling, "YCbCr-4:2:2")) {
>>
>
> Use strncmp()

strncmp is pointless when you compare to a string literal. strcmp is just fine.


More information about the ffmpeg-devel mailing list