aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-02-03 22:25:24 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-02-06 00:20:30 +0100
commit58c4b0f990828675d33f971073f61c81ac1066a8 (patch)
treed901e3a4737b139712a96b83aed0ee67424ae9ec /ffplay.c
parentf0eacbc760c8b27c2064cea5395e32971853c73c (diff)
downloadffmpeg-58c4b0f990828675d33f971073f61c81ac1066a8.tar.gz
ffplay: extend feedback in case of video changes
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index 2dbe8b965c..bbc1e70455 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1859,8 +1859,12 @@ static int video_thread(void *arg)
|| last_h != frame->height
|| last_format != frame->format
|| last_serial != serial) {
- av_log(NULL, AV_LOG_INFO, "Frame changed from size:%dx%d to size:%dx%d\n",
- last_w, last_h, frame->width, frame->height);
+ 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,
+ (const char *)av_x_if_null(av_get_pix_fmt_name(last_format), "none"), last_serial,
+ frame->width, frame->height,
+ (const char *)av_x_if_null(av_get_pix_fmt_name(frame->format), "none"), serial);
avfilter_graph_free(&graph);
graph = avfilter_graph_alloc();
if ((ret = configure_video_filters(graph, is, vfilters, frame)) < 0) {