changeset 9013:b54938038170 libavcodec

100l, always declare variables at the top of a block, not inside a for ()
author reimar
date Mon, 23 Feb 2009 14:02:11 +0000
parents 15a3df8c01fd
children 1de11a984fc6
files vdpau.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vdpau.c	Mon Feb 23 13:44:51 2009 +0000
+++ b/vdpau.c	Mon Feb 23 14:02:11 2009 +0000
@@ -131,6 +131,7 @@
 {
     H264Context *h = s->avctx->priv_data;
     struct vdpau_render_state *render;
+    int i;
 
     render = (struct vdpau_render_state *)s->current_picture_ptr->data[0];
     assert(render);
@@ -139,7 +140,7 @@
     if (render->info.h264.slice_count < 1)
         return;
 
-    for (int i = 0; i < 2; ++i) {
+    for (i = 0; i < 2; ++i) {
         int foc = s->current_picture_ptr->field_poc[i];
         if (foc == INT_MAX)
             foc = 0;