|
@@ -818,7 +818,7 @@ static void uvc_video_stats_decode(struct uvc_streaming *stream,
|
|
|
|
|
|
/* Update the packets counters. */
|
|
/* Update the packets counters. */
|
|
stream->stats.frame.nb_packets++;
|
|
stream->stats.frame.nb_packets++;
|
|
- if (len > header_size)
|
|
|
|
|
|
+ if (len <= header_size)
|
|
stream->stats.frame.nb_empty++;
|
|
stream->stats.frame.nb_empty++;
|
|
|
|
|
|
if (data[1] & UVC_STREAM_ERR)
|
|
if (data[1] & UVC_STREAM_ERR)
|