From d246c18ea6dca4dbdc92aec6ae4e3e038999a709 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 14 Jun 2012 10:19:06 +0200 Subject: Avoid C99 variable declarations within for statements. We generally do not declare variables within for statements and there are compilers that choke on such constructs. --- libavdevice/dv1394.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavdevice/dv1394.h') diff --git a/libavdevice/dv1394.h b/libavdevice/dv1394.h index 5ccc68a259..fc4df24032 100644 --- a/libavdevice/dv1394.h +++ b/libavdevice/dv1394.h @@ -175,7 +175,8 @@ if(status.dropped_frames > 0) { reset_dv1394(); } else { - for(int i = 0; i < status.n_clear_frames; i++) { + int i; + for (i = 0; i < status.n_clear_frames; i++) { copy_DV_frame(); } } -- cgit v1.2.3