A method for decoding a video frame, the method comprising: receiving a bitstream of encoded video data including the video frame; decoding, from the bitstream, a syntax element indicative of a slice type of a slice; when the slice type indicates a B slice type or a P slice type, decoding, from the bitstream, a flag that is used in determining a Context-Adaptive Binary Arithmetic Coding, CABAC, context initialization method for the B slice type or the P slice type; and characterized in initializing a CABAC context associated with the slice type using one of three initialization methods; wherein in a case that the slice type indicates a B slice type and a value of the flag is equal to a first value, a CABAC context associated with the B slice type is initialized by a first initialization method of the three initialization methods, in a case that the slice type indicates the B slice type and the value of the flag is equal to a second value, the CABAC context associated with the B slice type is initialized by a second initialization method of the three initialization methods, in a case that the slice type indicates the P slice type and the value of the flag is equal to the first value, a CABAC context associated with the P slice type is initialized by the second initialization method of the three initialization methods, in a case that the slice type indicates the P slice type and the value of the flag is equal to the second value, a CABAC context associated with the P slice type is initialized by the first initialization method of the three initialization methods, and in a case that the slice type indicates an I slice type, a CABAC context associated with the I slice type is initialized by a third initialization method of the three initialization methods. receiving a bitstream of encoded video data including the video frame; decoding, from the bitstream, a syntax element indicative of a slice type of a slice; when the slice type indicates a B slice type or a P slice type, decoding, from the bitstream, a flag that is used in determining a Context-Adaptive Binary Arithmetic Coding, CABAC, context initialization method for the B slice type or the P slice type; and characterized in initializing a CABAC context associated with the slice type using one of three initialization methods; wherein in a case that the slice type indicates a B slice type and a value of the flag is equal to a first value, a CABAC context associated with the B slice type is initialized by a first initialization method of the three initialization methods, in a case that the slice type indicates the B slice type and the value of the flag is equal to a second value, the CABAC context associated with the B slice type is initialized by a second initialization method of the three initialization methods, in a case that the slice type indicates the P slice type and the value of the flag is equal to the first value, a CABAC context associated with the P slice type is initialized by the second initialization method of the three initialization methods, in a case that the slice type indicates the P slice type and the value of the flag is equal to the second value, a CABAC context associated with the P slice type is initialized by the first initialization method of the three initialization methods, and in a case that the slice type indicates an I slice type, a CABAC context associated with the I slice type is initialized by a third initialization method of the three initialization methods. in a case that the slice type indicates a B slice type and a value of the flag is equal to a first value, a CABAC context associated with the B slice type is initialized by a first initialization method of the three initialization methods, in a case that the slice type indicates the B slice type and the value of the flag is equal to a second value, the CABAC context associated with the B slice type is initialized by a second initialization method of the three initialization methods, in a case that the slice type indicates the P slice type and the value of the flag is equal to the first value, a CABAC context associated with the P slice type is initialized by the second initialization method of the three initialization methods, in a case that the slice type indicates the P slice type and the value of the flag is equal to the second value, a CABAC context associated with the P slice type is initialized by the first initialization method of the three initialization methods, and in a case that the slice type indicates an I slice type, a CABAC context associated with the I slice type is initialized by a third initialization method of the three initialization methods.