question in em28xx-core.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
    I am confused by the number "172" in em28xx-core.c, function em28xx_isoc_video(),
    When we acquire the bottom field, we first see if everything is correct using these states:
+++++++++++++++++++++++++++++++++++++++++++++++++++
             if (!(*f)->top_field) {
                 (*f)->state = F_ERROR;
                 em28xx_isocdbg ("unexpected begin of bottom field; discarding it");
             } else if ((*f)-> fieldbytesused < dev->field_size - 172) {
                 (*f)->state = F_ERROR;
                 em28xx_isocdbg ("dropping incomplete top field (%i missing bytes)",
                      dev->field_size-(*f)->fieldbytesused);
             } else {
                 (*f)->top_field = 0;
                 (*f)->fieldbytesused = 0;
             }
++++++++++++++++++++++++++++++++++++++++++++++++++++
but why do we need minus 172 in the second branch??????
I think when we finish the top field grabbing, (*f)->fieldbytesused =dev->field_size,
but the code seems not, (*f)->fieldbytesused = dev->field_size, why???

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux