ffplay: report video frame changes only in debug mode
authorStefano Sabatini <stefasab@gmail.com>
Sun, 3 Feb 2013 21:26:55 +0000 (22:26 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 5 Feb 2013 23:20:37 +0000 (00:20 +0100)
In particular, remove distracting message:
"Video frame changed from size:0x0 format:none serial:-1 to ..."

ffplay.c

index bbc1e70..d8dbe44 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1859,7 +1859,7 @@ static int video_thread(void *arg)
             || last_h != frame->height
             || last_format != frame->format
             || last_serial != serial) {
             || last_h != frame->height
             || last_format != frame->format
             || last_serial != serial) {
-            av_log(NULL, AV_LOG_INFO,
+            av_log(NULL, AV_LOG_DEBUG,
                    "Video frame changed from size:%dx%d format:%s serial:%d to size:%dx%d format:%s serial:%d\n",
                    last_w, last_h,
                    (const char *)av_x_if_null(av_get_pix_fmt_name(last_format), "none"), last_serial,
                    "Video frame changed from size:%dx%d format:%s serial:%d to size:%dx%d format:%s serial:%d\n",
                    last_w, last_h,
                    (const char *)av_x_if_null(av_get_pix_fmt_name(last_format), "none"), last_serial,