Commit b7d8f6e0 authored by Diego Biurrun's avatar Diego Biurrun

Fix "suggest parentheses around assignment used as truth value" warnings.

Originally committed as revision 11293 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f315b394
...@@ -3326,7 +3326,7 @@ static void opt_show_formats(void) ...@@ -3326,7 +3326,7 @@ static void opt_show_formats(void)
const char *name=NULL; const char *name=NULL;
const char *long_name=NULL; const char *long_name=NULL;
while(ofmt= av_oformat_next(ofmt)) { while((ofmt= av_oformat_next(ofmt))) {
if((name == NULL || strcmp(ofmt->name, name)<0) && if((name == NULL || strcmp(ofmt->name, name)<0) &&
strcmp(ofmt->name, last_name)>0){ strcmp(ofmt->name, last_name)>0){
name= ofmt->name; name= ofmt->name;
...@@ -3334,7 +3334,7 @@ static void opt_show_formats(void) ...@@ -3334,7 +3334,7 @@ static void opt_show_formats(void)
encode=1; encode=1;
} }
} }
while(ifmt= av_iformat_next(ifmt)) { while((ifmt= av_iformat_next(ifmt))) {
if((name == NULL || strcmp(ifmt->name, name)<0) && if((name == NULL || strcmp(ifmt->name, name)<0) &&
strcmp(ifmt->name, last_name)>0){ strcmp(ifmt->name, last_name)>0){
name= ifmt->name; name= ifmt->name;
...@@ -3366,7 +3366,7 @@ static void opt_show_formats(void) ...@@ -3366,7 +3366,7 @@ static void opt_show_formats(void)
const char *type_str; const char *type_str;
p2=NULL; p2=NULL;
while(p= av_codec_next(p)) { while((p= av_codec_next(p))) {
if((p2==NULL || strcmp(p->name, p2->name)<0) && if((p2==NULL || strcmp(p->name, p2->name)<0) &&
strcmp(p->name, last_name)>0){ strcmp(p->name, last_name)>0){
p2= p; p2= p;
...@@ -3412,12 +3412,12 @@ static void opt_show_formats(void) ...@@ -3412,12 +3412,12 @@ static void opt_show_formats(void)
printf("\n"); printf("\n");
printf("Bitstream filters:\n"); printf("Bitstream filters:\n");
while(bsf = av_bitstream_filter_next(bsf)) while((bsf = av_bitstream_filter_next(bsf)))
printf(" %s", bsf->name); printf(" %s", bsf->name);
printf("\n"); printf("\n");
printf("Supported file protocols:\n"); printf("Supported file protocols:\n");
while(up = av_protocol_next(up)) while((up = av_protocol_next(up)))
printf(" %s:", up->name); printf(" %s:", up->name);
printf("\n"); printf("\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment