Revision 75f2c209 libavcodec/dv.c

View differences:

libavcodec/dv.c
138 138

  
139 139
        done = 1;
140 140

  
141
        /* dv_anchor lets each thread know its Id */
141
        /* dv_anchor lets each thread know its ID */
142 142
        for (i=0; i<DV_ANCHOR_SIZE; i++)
143 143
            dv_anchor[i] = (void*)(size_t)i;
144 144

  
......
967 967
        }
968 968
    }
969 969

  
970
    /* Third and final pass over the whole vides segment space */
970
    /* Third and final pass over the whole video segment space */
971 971
    pb= &pbs[0];
972 972
    for (j=0; j<5*6; j++) {
973 973
       if (enc_blks[j].partial_bit_count)
......
1119 1119
          buf[1] = 0xff; /* reserved -- always 1 */
1120 1120
          buf[2] = (1 << 7) | /* B/W: 0 - b/w, 1 - color */
1121 1121
                   (1 << 6) | /* following CLF is valid - 0, invalid - 1 */
1122
                   (3 << 4) | /* CLF: color frames id (see ITU-R BT.470-4) */
1122
                   (3 << 4) | /* CLF: color frames ID (see ITU-R BT.470-4) */
1123 1123
                   0xf; /* reserved -- always 1 */
1124 1124
          buf[3] = (3 << 6) | /* reserved -- always 1 */
1125 1125
                   (c->sys->dsf << 5) | /*  system: 60fields/50fields */
......
1131 1131
                   0x3f; /* reserved -- always 1 */
1132 1132
          buf[2] = 0xc8 | /* reserved -- always b11001xxx */
1133 1133
                   aspect;
1134
          buf[3] = (1 << 7) | /* Frame/field flag 1 -- frame, 0 -- field */
1135
                   (1 << 6) | /* First/second field flag 0 -- field 2, 1 -- field 1 */
1136
                   (1 << 5) | /* Frame change flag 0 -- same picture as before, 1 -- different */
1134
          buf[3] = (1 << 7) | /* frame/field flag 1 -- frame, 0 -- field */
1135
                   (1 << 6) | /* first/second field flag 0 -- field 2, 1 -- field 1 */
1136
                   (1 << 5) | /* frame change flag 0 -- same picture as before, 1 -- different */
1137 1137
                   (1 << 4) | /* 1 - interlaced, 0 - noninterlaced */
1138 1138
                   0xc; /* reserved -- always b1100 */
1139 1139
          buf[4] = 0xff; /* reserved -- always 1 */
......
1151 1151

  
1152 1152
    for (chan = 0; chan < c->sys->n_difchan; chan++) {
1153 1153
        for (i = 0; i < c->sys->difseg_size; i++) {
1154
            memset(buf, 0xff, 80 * 6); /* First 6 DIF blocks are for control data */
1154
            memset(buf, 0xff, 80 * 6); /* first 6 DIF blocks are for control data */
1155 1155

  
1156 1156
            /* DV header: 1DIF */
1157 1157
            buf += dv_write_dif_id(dv_sect_header, chan, i, 0, buf);

Also available in: Unified diff