aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiorgio Vazzana <mywing81@gmail.com>2013-09-08 10:32:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-08 14:30:52 +0200
commit7f6ec05f0952ea744f9d41988636a635c82a298e (patch)
tree38f21728fcc813fe68e67d4f0f88309ed7d533bc
parent0227b4292629a2a0b04551937c03496d2573a4bb (diff)
downloadffmpeg-7f6ec05f0952ea744f9d41988636a635c82a298e.tar.gz
lavd/v4l2: Improve debug message
In particular, print the standard supported by the selected input. Additionally, use PRIx64 everywhere when printing standards. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavdevice/v4l2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index c7cd5190ff..1199f4b8f8 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -325,8 +325,8 @@ static void list_standards(AVFormatContext *ctx)
return;
}
}
- av_log(ctx, AV_LOG_INFO, "%2d, %16llx, %s\n",
- standard.index, standard.id, standard.name);
+ av_log(ctx, AV_LOG_INFO, "%2d, %16"PRIx64", %s\n",
+ standard.index, (uint64_t)standard.id, standard.name);
}
}
@@ -692,7 +692,7 @@ static int v4l2_set_parameters(AVFormatContext *s1)
}
if (standard.id == s->std_id) {
av_log(s1, AV_LOG_DEBUG,
- "Current standard: %s, id: %"PRIu64", frameperiod: %d/%d\n",
+ "Current standard: %s, id: %"PRIx64", frameperiod: %d/%d\n",
standard.name, (uint64_t)standard.id, tpf->numerator, tpf->denominator);
break;
}
@@ -845,8 +845,8 @@ static int v4l2_read_header(AVFormatContext *s1)
return res;
}
s->std_id = input.std;
- av_log(s1, AV_LOG_DEBUG, "Current input_channel: %d, input_name: %s\n",
- s->channel, input.name);
+ av_log(s1, AV_LOG_DEBUG, "Current input_channel: %d, input_name: %s, input_std: %"PRIx64"\n",
+ s->channel, input.name, (uint64_t)input.std);
if (s->list_format) {
list_formats(s1, s->fd, s->list_format);