This possible block value was not understood by libv4l2rds.
This can happen if obsolete so-called 'E' blocks were received.
This should never happen in practice, but it is still good to
handle it, just in case.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
rds_stats->block_cnt++;
/* check for corrected / uncorrectable errors in the data */
- if (rds_data->block & V4L2_RDS_BLOCK_ERROR) {
+ if ((rds_data->block & V4L2_RDS_BLOCK_ERROR) ||
+ block_id == V4L2_RDS_BLOCK_INVALID) {
block_id = -1;
rds_stats->block_error_cnt++;
} else if (rds_data->block & V4L2_RDS_BLOCK_CORRECTED) {