summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-06-14 10:19:06 +0200
committerDiego Biurrun <diego@biurrun.de>2012-06-14 23:36:04 +0200
commitd246c18ea6dca4dbdc92aec6ae4e3e038999a709 (patch)
tree021d829907a0dac6bdc37bfa0779bedf71f4e75b /libavdevice
parent7dc747f50b0adeaf2bcf6413e291dc4bffa54f9a (diff)
downloadffmpeg-d246c18ea6dca4dbdc92aec6ae4e3e038999a709.tar.gz
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.
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/dv1394.h3
1 files changed, 2 insertions, 1 deletions
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();
}
}