ment equal to 5, the value of frame num of a corresponding redundant coded picture is the same as the value of frame num in the primary coded picture. Alternatively, the redundant coded picture includes memory_management_control_operation syntax element equal to 5 and the corresponding primary coded picture is an IDR picture. field_pic_flag equal to 1 specifies that the slice is a slice of a coded field. _pic_flag equal to 0 specifies that the slice is a slice of a coded frame. When field_pic_flag is not present it shall be inferred to be equal to 0. The variable MbaffFrameFlag is derived as MbaffFrameFlag = (mb_adaptive_frame_field_flag && !field_pic_flag ) (7-24) The variable for the picture height in units of macroblocks is derived as PicHeightInMbs = FrameHeightInMbs / + field_pic_flag ) (7-25) The variable for picture height for the luma component is derived as PicHeightInSamples = PicHeightInMbs * 16 (7-26) The variable for picture height for the chroma component is derived as PicHeightInSamples = PicHeightInMbs * MbHeightC (7-27) The variable PicSizeInMbs for the current picture is derived as PicSizeInMbs = PicWidthInMbs * PicHeightInMbs (7-28) The variable MaxPicNum is derived as follows: If field_pic_flag is equal to 0, MaxPicNum is set equal to MaxFrameNum. Otherwise (field_pic_flag is equal to 1), MaxPicNum is set equal to 2*MaxFrameNum. The variable CurrPicNum is derived as follows: If field_pic_flag is equal to 0, CurrPicNum is set equal to frame_num. Otherwise (field_pic_flag is equal to 1), CurrPicNum is set equal to 2 * frame num + 1. bottom_field_flag equal to 1 specifies that the slice is part of a coded bottom field. bottom_field_flag equal to 0 specifies that the picture is a coded top field. When this syntax element is not present for the current slice, it shall be inferred to be equal to 0. idr_pic_id identifies an IDR picture. The values of idr_pic_id in all the slices of an IDR picture shall remain unchanged. When two consecutive access units in decoding order are both IDR access units, th