Browse Source

Remove alpha information from avcodec_pix_fmt_string(), as that

information does not belong to the pixel format.

Originally committed as revision 25686 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Stefano Sabatini 15 years ago
parent
commit
24409b5053
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      libavcodec/imgconvert.c

+ 3
- 6
libavcodec/imgconvert.c View File

@@ -437,19 +437,16 @@ void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt)
/* print header */
if (pix_fmt < 0)
snprintf (buf, buf_size,
"name " " nb_channels" " depth" " is_alpha"
"name " " nb_channels" " depth"
);
else{
PixFmtInfo info= pix_fmt_info[pix_fmt];

char is_alpha_char= info.is_alpha ? 'y' : 'n';

snprintf (buf, buf_size,
"%-11s %5d %9d %6c",
"%-11s %5d %9d",
av_pix_fmt_descriptors[pix_fmt].name,
info.nb_channels,
info.depth,
is_alpha_char
info.depth
);
}
}


Loading…
Cancel
Save