applemedia: fix segfault with dropped frames
applemedia: fix H264 streams with b-frames

The decoder output frames in DTS order, even with the flag
kVTDecodeFrame_EnableTemporalProcessing. We store a internal
queue of the decoded frames and push them PTS order.