- Always set |first_frame_in_picture| and |end_of_superframe|. - Avoid division by zero when calculating the gof_idx. Bug: webrtc:9157 Change-Id: I19e48fa4f639815c874edec0e32deb5914912410 Tested: AppRTCMobile Reviewed-on: https://webrtc-review.googlesource.com/70143 Commit-Queue: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22903}