mpegps: Use av_get_packet() instead of poorly emulating it.