raspberrypi / userland

Source code for ARM side libraries for interfacing to Raspberry Pi GPU.
BSD 3-Clause "New" or "Revised" License
2.05k stars 1.09k forks source link

Fix for missing timestamps when data exceed one buffers worth #553

Closed JamesH65 closed 5 years ago

JamesH65 commented 5 years ago

Fix provided by DaveS.

The addition of a NAL flag appears to have broken timestamps with large buffers. This simplifies the 'if' around timestamps and takes the NAL change in to account.

Also fixed up some bad code formatting after the if statement. Yes, I know.

6by9 commented 5 years ago

Nit picks.

If fixing the code style, then adding the space after the if in if(pData->pstate->save_pts would have been nice.

No need to put the comment about where the fix came from in the commit text.

JamesH65 commented 5 years ago

Fixed up Dave's comments.