]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/dv1394.h
asfdec: do not read replicated data when their length is 0
[ffmpeg] / libavdevice / dv1394.h
index 5ccc68a2597417642540c769d0119fc181f254d0..9710ff56ea9d1e54766831ce57a5c1300a933778 100644 (file)
          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();
               }
          }
    where copy_DV_frame() reads or writes on the dv1394 file descriptor
    (read/write mode) or copies data to/from the mmap ringbuffer and
    then calls ioctl(DV1394_SUBMIT_FRAMES) to notify dv1394 that new
-   frames are availble (mmap mode).
+   frames are available (mmap mode).
 
    reset_dv1394() is called in the event of a buffer
    underflow/overflow or a halt in the DV stream (e.g. due to a 1394