Skip to content

Commit

Permalink
fix invalid chroma intra pred mode access
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed May 6, 2015
1 parent 123061a commit 93755bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libde265/slice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3111,14 +3111,19 @@ void read_transform_tree(thread_context* tctx,

if (intraPredMode<0 || intraPredMode>=35) {
// TODO: ERROR

intraPredMode = INTRA_DC;
}

decode_intra_prediction(img, x0,y0, intraPredMode, nT, 0);

enum IntraPredMode chromaPredMode = tctx->IntraPredModeC;

if (chromaPredMode<0 || chromaPredMode>=35) {
// TODO: ERROR
chromaPredMode = INTRA_DC;
}


if (nT>=8) {
decode_intra_prediction(img, x0/2,y0/2, chromaPredMode, nT/2, 1);
decode_intra_prediction(img, x0/2,y0/2, chromaPredMode, nT/2, 2);
Expand Down

0 comments on commit 93755bd

Please sign in to comment.