Skip to content

Commit

Permalink
fix reading VUI with matrix_coeffs=0
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 2, 2020
1 parent a5badc1 commit 60d682d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libde265/vui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ de265_error video_usability_information::read(error_queue* errqueue, bitreader*
}

matrix_coeffs = get_bits(br, 8);
if (matrix_coeffs == 0 ||
matrix_coeffs >= 11) {

if (matrix_coeffs >= 11) {
matrix_coeffs = 2;
}
}
Expand Down

0 comments on commit 60d682d

Please sign in to comment.