Opened 8 years ago Closed 3 years ago #1163 closed defect (fixed)Undefined variable in Derivation process for collocated motion vectors
Description
In "Derivation process for collocated motion vectors":
Inputs to this process are:
The arrays predFlagLXCol[ x ][ y ], mvLXCol[ x ][ y ], and refIdxLXCol[ x ][ y ] are set equal to the corresponding arrays of the collocated picture specified by colPic, PredFlagLX[ x ][ y ], MvLX[ x ][ y ], and RefIdxLX[ x ][ y ], respectively, with X being the value of X this process is invoked for.
If predFlagL0Col[ xColPb ][ yColPb ] is equal to 0, ...
Problem:
If the process is invoked with refIdxL1, then X=1 and predFlagL0Col isn't defined since predFlagLXCol is assigned only for "X being the value of X this process is invoked for".
Is my understanding correct? Change History (3)comment:1 Changed 8 years ago by DefaultCC Plugin
comment:2 Changed 8 years ago by ykcomment:3 Changed 3 years ago by bbross
Fixed in the 2016/12 release of the HEVC specification. Note: See
TracTickets for help on using
tickets.  This list contains all users that will be notified about changes made to this ticket. These roles will be notified: Reporter, Owner, Subscriber, Participant

I think you are right and changing
The arrays predFlagLXCol[ x ][ y ], mvLXCol[ x ][ y ], and refIdxLXCol[ x ][ y ] are set equal to the corresponding arrays of the collocated picture specified by colPic, PredFlagLX[ x ][ y ], MvLX[ x ][ y ], and RefIdxLX[ x ][ y ], respectively, with X being the value of X this process is invoked for.
to
The arrays predFlagL0Col[ x ][ y ], mvL0Col[ x ][ y ], and refIdxL0Col[ x ][ y ] are set equal to PredFlagL0[ x ][ y ], MvL0[ x ][ y ], and RefIdxL0[ x ][ y ], respectively, of the collocated picture specified by colPic, and the arrays predFlagL1Col[ x ][ y ], mvL1Col[ x ][ y ], and refIdxL1Col[ x ][ y ] are set equal to PredFlagL1[ x ][ y ], MvL1[ x ][ y ], and RefIdxL1[ x ][ y ], respectively, of the collocated picture specified by colPic..
should resolve this issue.
BR, YK