[FFmpeg-devel] [PATCH] ffplay: report video frame changes only after the first one
Stefano Sabatini
stefasab at gmail.com
Sun Feb 3 22:29:09 CET 2013
In particular, remove distracting message:
"Video frame changed from size:0x0 format:none serial:-1 to ..."
which is always shown when playing a video stream.
---
ffplay.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffplay.c b/ffplay.c
index fc72b3a..875d4f4 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1941,6 +1941,7 @@ static int video_thread(void *arg)
|| last_h != frame->height
|| last_format != frame->format
|| last_serial != serial) {
+ if (last_serial >= 0)
av_log(NULL, AV_LOG_INFO,
"Video frame changed from size:%dx%d format:%s serial:%d to size:%dx%d format:%s serial:%d\n",
last_w, last_h,
--
1.7.9.5
More information about the ffmpeg-devel
mailing list