diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-24 18:44:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-24 18:44:40 +0100 |
commit | 15848c623d18fee1775b866b87eda22c38e710de (patch) | |
tree | 14f2ee17524a903849341f1f0b8eb16192b4decb | |
parent | 77140279d33006f1d949ee3717af67204dc519c6 (diff) | |
download | ffmpeg-15848c623d18fee1775b866b87eda22c38e710de.tar.gz |
avdevice/dshow_crossbar: Avoid mixing declarations and statements
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavdevice/dshow_crossbar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/dshow_crossbar.c b/libavdevice/dshow_crossbar.c index 1260428d2d..9c6301977b 100644 --- a/libavdevice/dshow_crossbar.c +++ b/libavdevice/dshow_crossbar.c @@ -75,6 +75,7 @@ setup_crossbar_options(IAMCrossbar *cross_bar, enum dshowDeviceType devtype, AVF for (i = 0; i < count_output_pins; i++) { + int j; long related_pin, pin_type, route_to_pin; hr = IAMCrossbar_get_CrossbarPinInfo(cross_bar, FALSE, i, &related_pin, &pin_type); if (pin_type == PhysConn_Video_VideoDecoder) { @@ -109,7 +110,7 @@ setup_crossbar_options(IAMCrossbar *cross_bar, enum dshowDeviceType devtype, AVF av_log(avctx, log_level, "current input pin: %ld ", route_to_pin); av_log(avctx, log_level, "compatible input pins: "); - for (int j = 0; j < count_input_pins; j++) + for (j = 0; j < count_input_pins; j++) { hr = IAMCrossbar_CanRoute(cross_bar, i, j); if (hr == S_OK) |