[FFmpeg-devel] [PATCH] Add default stream flag

Evgeniy Stepanov eugeni.stepanov
Fri Feb 29 03:46:59 CET 2008


On Friday 29 February 2008 04:51:04 Michael Niedermayer wrote:
[...]
> > +static void set_disposition_bits(AVFormatContext* avf, char* value,
> > unsigned int stream_id_plus1){ +    int flag = 0, i;
> > +    for (i=0; ff_nut_dispositions[i].flag != 0; ++i) {
>
> the != 0 is superflous
>
>
> > +        if (!strncmp(ff_nut_dispositions[i].str, value,
> > +                     strlen(ff_nut_dispositions[i].str))) {
>
> why strncmp() and not strcmp() ?

Mindless copypaste from matroska* )

[...]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream-disposition.patch
Type: text/x-diff
Size: 7694 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080229/4cb6a82f/attachment.patch>



More information about the ffmpeg-devel mailing list