[FFmpeg-cvslog] lavc/raw-test: invert the order of key/value when printing the fourcc-> pix_fmt map

Stefano Sabatini git at videolan.org
Thu Sep 6 23:43:09 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Sep  6 16:16:11 2012 +0200| [144caa7280aaa3e20d527938d07468d076586df5] | committer: Stefano Sabatini

lavc/raw-test: invert the order of key/value when printing the fourcc->pix_fmt map

Print
FOURCC: PIX_FMT
rather than
PIX_FMT: FOURCC

This seems more consistent with the help message:
-l                list the pixel format for each fourcc

Remove possibly redundant/confusing comment.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=144caa7280aaa3e20d527938d07468d076586df5
---

 libavcodec/raw.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index 2cc69a6..0475cd2 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -251,12 +251,11 @@ int main(int argc, char **argv)
     }
 
     if (list_fourcc_pix_fmt) {
-        /* print a list of pixel format / fourcc */
         for (i = 0; i < FF_ARRAY_ELEMS(ff_raw_pix_fmt_tags); i++) {
             char buf[32];
             av_get_codec_tag_string(buf, sizeof(buf), ff_raw_pix_fmt_tags[i].fourcc);
             if (ff_raw_pix_fmt_tags[i].pix_fmt != PIX_FMT_NONE)
-                printf("%s: %s\n", av_get_pix_fmt_name(ff_raw_pix_fmt_tags[i].pix_fmt), buf);
+                printf("%s: %s\n", buf, av_get_pix_fmt_name(ff_raw_pix_fmt_tags[i].pix_fmt));
         }
     }
 



More information about the ffmpeg-cvslog mailing list